mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
change from sqlite hash to newly added one
This commit is contained in:
@@ -432,7 +432,7 @@ static switch_status_t do_config(void)
|
||||
use_dynamic_url = 1;
|
||||
} else if (!strcasecmp(var, "enable-post-var")) {
|
||||
if (!vars_map && need_vars_map == 0) {
|
||||
if (switch_core_hash_init(&vars_map, globals.pool) != SWITCH_STATUS_SUCCESS) {
|
||||
if (switch_core_hash_init(&vars_map) != SWITCH_STATUS_SUCCESS) {
|
||||
need_vars_map = -1;
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Can't init params hash!\n");
|
||||
continue;
|
||||
|
||||
@@ -1196,8 +1196,8 @@ SWITCH_MODULE_RUNTIME_FUNCTION(mod_xml_rpc_runtime)
|
||||
|
||||
MIMETypeInit();
|
||||
|
||||
for (hi = switch_core_mime_index(); hi; hi = switch_hash_next(hi)) {
|
||||
switch_hash_this(hi, &var, NULL, &val);
|
||||
for (hi = switch_core_mime_index(); hi; hi = switch_core_hash_next(hi)) {
|
||||
switch_core_hash_this(hi, &var, NULL, &val);
|
||||
if (var && val) {
|
||||
MIMETypeAdd((char *) val, (char *) var);
|
||||
}
|
||||
|
||||
@@ -282,7 +282,7 @@ static switch_status_t do_config(void)
|
||||
}
|
||||
} else if (!strcasecmp(var, "enable-post-var")) {
|
||||
if (!vars_map && need_vars_map == 0) {
|
||||
if (switch_core_hash_init(&vars_map, globals.pool) != SWITCH_STATUS_SUCCESS) {
|
||||
if (switch_core_hash_init(&vars_map) != SWITCH_STATUS_SUCCESS) {
|
||||
need_vars_map = -1;
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Can't init params hash!\n");
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user