[Freeswitch-svn] [commit] r3994 - freeswitch/trunk/src/mod/xml_int/mod_xml_curl

Freeswitch SVN mikej at freeswitch.org
Thu Jan 18 22:08:08 EST 2007


Author: mikej
Date: Thu Jan 18 22:08:08 2007
New Revision: 3994

Modified:
   freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c

Log:
use strchr instead of index as recommended by the linux man pages for portability.

Modified: freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c
==============================================================================
--- freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c	(original)
+++ freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c	Thu Jan 18 22:08:08 2007
@@ -77,7 +77,7 @@
                                 tag_name ? tag_name : "",
                                 key_name ? key_name : "",
                                 key_value ? key_value : "",
-                                params ? index(params,'=') ? "&" : "&params=" : "", params ? params : ""))) {
+                                params ? strchr(params,'=') ? "&" : "&params=" : "", params ? params : ""))) {
 
         switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Memory Error!\n");
         return NULL;



More information about the Freeswitch-svn mailing list