[asterisk-commits] mmichelson: trunk r403350 - in /trunk: ./ res/res_pjsip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Dec 4 12:41:02 CST 2013
Author: mmichelson
Date: Wed Dec 4 12:41:01 2013
New Revision: 403350
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=403350
Log:
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
Modified:
trunk/ (props changed)
trunk/res/res_pjsip.c
Propchange: trunk/
------------------------------------------------------------------------------
--- branch-12-merged (original)
+++ branch-12-merged Wed Dec 4 12:41:01 2013
@@ -1,1 +1,1 @@
-/branches/12:1-398558,398560-398577,398579-399305,399307-401390,401392-403175,403179,403207,403209,403221,403223,403240,403256,403258,403271,403290,403311-403312,403324,403329
+/branches/12:1-398558,398560-398577,398579-399305,399307-401390,401392-403175,403179,403207,403209,403221,403223,403240,403256,403258,403271,403290,403311-403312,403324,403329,403349
Modified: trunk/res/res_pjsip.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_pjsip.c?view=diff&rev=403350&r1=403349&r2=403350
==============================================================================
--- trunk/res/res_pjsip.c (original)
+++ trunk/res/res_pjsip.c Wed Dec 4 12:41:01 2013
@@ -1937,7 +1937,7 @@
void *ast_sip_dict_get(void *ht, const char *key)
{
- unsigned int hval;
+ unsigned int hval = 0;
if (!ht) {
return NULL;
More information about the asterisk-commits
mailing list