[Freeswitch-svn] [commit] r4196 - freeswitch/trunk/src

Freeswitch SVN mikej at freeswitch.org
Sat Feb 10 18:26:53 EST 2007


Author: mikej
Date: Sat Feb 10 18:26:53 2007
New Revision: 4196

Modified:
   freeswitch/trunk/src/switch_core.c

Log:
be more safe about compiler qwirkyness in initialization.

Modified: freeswitch/trunk/src/switch_core.c
==============================================================================
--- freeswitch/trunk/src/switch_core.c	(original)
+++ freeswitch/trunk/src/switch_core.c	Sat Feb 10 18:26:53 2007
@@ -2547,7 +2547,7 @@
         if (strchr(dtmf, 'w') || strchr(dtmf, 'W')) {
             char *d;
             for (d = dtmf; d && *d; d++) {
-                char digit[2] = "";
+				char digit[2] = {0};
                 
                 if (*d == 'w') {
                     switch_yield(500000);



More information about the Freeswitch-svn mailing list