FS-6342 --resolve regression from 804ef7709d Missed part of properly implementing the case-insensitive mode on the hash causing the dp lookup xml not to match XML

This commit is contained in:
Anthony Minessale
2014-03-12 04:50:42 +05:00
parent 9fd30a2cd9
commit bcec5e22a2
2 changed files with 10 additions and 1 deletions

View File

@@ -38,7 +38,11 @@
SWITCH_DECLARE(switch_status_t) switch_core_hash_init_case(switch_hash_t **hash, switch_bool_t case_sensitive)
{
return switch_create_hashtable(hash, 16, case_sensitive ? switch_hash_default : switch_hash_default_ci, switch_hash_equalkeys);
if (case_sensitive) {
return switch_create_hashtable(hash, 16, switch_hash_default, switch_hash_equalkeys);
} else {
return switch_create_hashtable(hash, 16, switch_hash_default_ci, switch_hash_equalkeys_ci);
}
}