From f7611711f120ccc5ced381685425bae98de7407c Mon Sep 17 00:00:00 2001 From: Kevin Harwell Date: Thu, 10 Apr 2014 21:07:44 +0000 Subject: [PATCH] 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. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@412074 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_pjsip_pubsub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/res_pjsip_pubsub.c b/res/res_pjsip_pubsub.c index 43f00518e1..c8c75c6943 100644 --- a/res/res_pjsip_pubsub.c +++ b/res/res_pjsip_pubsub.c @@ -1176,7 +1176,7 @@ int ast_sip_pubsub_generate_body_content(const char *type, const char *subtype, { 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); -- 2.47.2