summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2013-12-04 18:41:01 +0000
committerMark Michelson <mmichelson@digium.com>2013-12-04 18:41:01 +0000
commitd61f258384a8fb0f03d09872d5d108bda115c61a (patch)
treea7585f6b8365cffc3e661d97846ba78759f51a03 /res
parentb8025e789de01ffa20214499e57b017db1f91f03 (diff)
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
Diffstat (limited to 'res')
-rw-r--r--res/res_pjsip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip.c b/res/res_pjsip.c
index 80cef06e5..d5b870f1f 100644
--- a/res/res_pjsip.c
+++ b/res/res_pjsip.c
@@ -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;