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

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3994 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-01-19 03:08:08 +00:00
parent 23a744ad9d
commit e5eba308ab
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ static switch_xml_t xml_url_fetch(char *section,
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;