]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
make MikeJ happy - switch_assert argv[0] != NULL
authorRupa Schomaker <rupa@rupa.com>
Tue, 3 Feb 2009 22:19:31 +0000 (22:19 +0000)
committerRupa Schomaker <rupa@rupa.com>
Tue, 3 Feb 2009 22:19:31 +0000 (22:19 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11623 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_lcr/mod_lcr.c

index 83296cdbe5c9e91c64d5aaa343091b83f162df72..734665d05d9bbae895e2b9c8d37a933c98afa27b 100644 (file)
@@ -663,6 +663,7 @@ SWITCH_STANDARD_API(dialplan_lcr_function)
        mydata = switch_core_strdup(pool, cmd);
 
        if ((argc = switch_separate_string(mydata, ' ', argv, (sizeof(argv) / sizeof(argv[0]))))) {
+               switch_assert(argv[0] != NULL);
                destination_number = switch_core_strdup(pool, argv[0]);
                if(argc > 1) {
                        lcr_profile = argv[1];