Skip to content
Snippets Groups Projects
Commit d61f2583 authored by Mark Michelson's avatar Mark Michelson
Browse files

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
parent b8025e78
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment