Ignore:
Timestamp:
Apr 11, 2007 7:48:03 AM (17 years ago)
Author:
bennylp
Message:

Fixed ticket #219: Bug in hash table when key is PJ_HASH_KEY_STRING and hval is specified (thanks ChenHuan?)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/hash.c

    r974 r1186  
    134134    if (hval && *hval != 0) { 
    135135        hash = *hval; 
     136        if (keylen==PJ_HASH_KEY_STRING) { 
     137            keylen = pj_ansi_strlen((const char*)key); 
     138        } 
    136139    } else { 
    137140        /* This slightly differs with pj_hash_calc() because we need  
Note: See TracChangeset for help on using the changeset viewer.