summaryrefslogtreecommitdiff
path: root/res/res_pjsip_pubsub.c
diff options
context:
space:
mode:
authorKevin Harwell <kharwell@digium.com>2014-04-10 21:10:46 +0000
committerKevin Harwell <kharwell@digium.com>2014-04-10 21:10:46 +0000
commit6905ac0f5e80f0434395bb9c07883cb6547fac36 (patch)
treefbfd623b4fe6df986cab407ddb81eb2a69c2f30b /res/res_pjsip_pubsub.c
parent755696dcd0b9144754a914129e80116da1ebdbd8 (diff)
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. ........ Merged revisions 412074 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@412075 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_pjsip_pubsub.c')
-rw-r--r--res/res_pjsip_pubsub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip_pubsub.c b/res/res_pjsip_pubsub.c
index 43f00518e..c8c75c694 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);