summaryrefslogtreecommitdiff
path: root/pjlib/src/pj/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'pjlib/src/pj/hash.c')
-rw-r--r--pjlib/src/pj/hash.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/pjlib/src/pj/hash.c b/pjlib/src/pj/hash.c
index 7ad339be..7bce8b6e 100644
--- a/pjlib/src/pj/hash.c
+++ b/pjlib/src/pj/hash.c
@@ -178,17 +178,12 @@ static pj_hash_entry **find_entry( pj_pool_t *pool, pj_hash_table_t *ht,
entry;
p_entry = &entry->next, entry = *p_entry)
{
- pj_str_t str;
-
- if (lower) {
- str.ptr = (char *)entry->key;
- str.slen = keylen;
- }
if (entry->hash==hash && entry->keylen==keylen &&
- ((lower && pj_strnicmp2(&str, (const char *)key, keylen)==0) ||
+ ((lower && pj_ansi_strnicmp((const char*)entry->key,
+ (const char*)key, keylen)==0) ||
(!lower && pj_memcmp(entry->key, key, keylen)==0)))
{
- break;
+ break;
}
}