Changeset 1185 for pjproject


Ignore:
Timestamp:
Apr 11, 2007 7:46:13 AM (18 years ago)
Author:
bennylp
Message:

Fixed ticket #218: 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/branches/pjproject-0.5-stable/pjlib/src/pj/hash.c

    r974 r1185  
    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.