[Freeswitch-svn] [commit] r3776 - freeswitch/branches/knhor/trunk/src/mod/applications/mod_conference
Freeswitch SVN
knhor at freeswitch.org
Thu Dec 21 10:58:33 EST 2006
Author: knhor
Date: Thu Dec 21 10:58:32 2006
New Revision: 3776
Modified:
freeswitch/branches/knhor/trunk/src/mod/applications/mod_conference/mod_conference.c
Log:
fix segfault
Modified: freeswitch/branches/knhor/trunk/src/mod/applications/mod_conference/mod_conference.c
==============================================================================
--- freeswitch/branches/knhor/trunk/src/mod/applications/mod_conference/mod_conference.c (original)
+++ freeswitch/branches/knhor/trunk/src/mod/applications/mod_conference/mod_conference.c Thu Dec 21 10:58:32 2006
@@ -2447,7 +2447,7 @@
void *val;
char *d = ";";
int pretty = 0;
- int argofs = (strcasecmp(argv[1],"list") == 0); // detect being called from chat vs. api
+ int argofs = (argc >= 2 && strcasecmp(argv[1],"list") == 0); // detect being called from chat vs. api
if (argv[1+argofs]) {
if (argv[2+argofs] && !strcasecmp(argv[1+argofs], "delim")) {
More information about the Freeswitch-svn
mailing list