Initialize the hash value argument to pj_hash_get() to 0.

Passing a non-zero value causes PJLIB to use the given input as the
hash value. Passing zero causes the parameter to become an output parameter
that receives the hash value that was computed based on the given key.

This change essentially makes ast_sip_dict_get() properly retrieve the
desired value.
........

Merged revisions 403349 from http://svn.asterisk.org/svn/asterisk/branches/12


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@403350 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Michelson 2013-12-04 18:41:01 +00:00
parent b8025e789d
commit d61f258384
1 changed files with 1 additions and 1 deletions

View File

@ -1937,7 +1937,7 @@ int ast_sip_thread_is_servant(void)
void *ast_sip_dict_get(void *ht, const char *key)
{
unsigned int hval;
unsigned int hval = 0;
if (!ht) {
return NULL;