[asterisk-commits] kharwell: branch 12 r412074 - /branches/12/res/res_pjsip_pubsub.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Apr 10 16:07:48 CDT 2014


Author: kharwell
Date: Thu Apr 10 16:07:44 2014
New Revision: 412074

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=412074
Log:
res_pjsip_pubsub: Set the body generation result to 0 for a valid path

The result of the "ast_sip_pubsub_generate_body_content" was not
set/initialized.  Consequently, the nominal path potentially returned
an invalid value, thus not sending mwi notifications.

Modified:
    branches/12/res/res_pjsip_pubsub.c

Modified: branches/12/res/res_pjsip_pubsub.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/res/res_pjsip_pubsub.c?view=diff&rev=412074&r1=412073&r2=412074
==============================================================================
--- branches/12/res/res_pjsip_pubsub.c (original)
+++ branches/12/res/res_pjsip_pubsub.c Thu Apr 10 16:07:44 2014
@@ -1176,7 +1176,7 @@
 {
 	struct ast_sip_pubsub_body_supplement *supplement;
 	struct ast_sip_pubsub_body_generator *generator;
-	int res;
+	int res = 0;
 	void *body;
 
 	generator = find_body_generator_type_subtype(type, subtype);




More information about the asterisk-commits mailing list