[Freeswitch-svn] [commit] r8427 - freeswitch/trunk/src/mod/xml_int/mod_xml_curl
Freeswitch SVN
mikej at freeswitch.org
Fri May 16 00:01:56 EDT 2008
Author: mikej
Date: Fri May 16 00:01:56 2008
New Revision: 8427
Modified:
freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c
Log:
don't push null values into the hash
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 Fri May 16 00:01:56 2008
@@ -266,9 +266,9 @@
need_vars_map = 1;
}
- if(vars_map)
- if (switch_core_hash_insert(vars_map,val,ENABLE_PARAM_VALUE) != SWITCH_STATUS_SUCCESS) {
- switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Cant add %s to params hash!\n",val);
+ if (vars_map && val)
+ if (switch_core_hash_insert(vars_map, val, ENABLE_PARAM_VALUE) != SWITCH_STATUS_SUCCESS) {
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Cant add %s to params hash!\n",val);
}
}
More information about the Freeswitch-svn
mailing list