]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_pjsip_pubsub: Set the body generation result to 0 for a valid path
authorKevin Harwell <kharwell@digium.com>
Thu, 10 Apr 2014 21:10:46 +0000 (21:10 +0000)
committerKevin Harwell <kharwell@digium.com>
Thu, 10 Apr 2014 21:10:46 +0000 (21:10 +0000)
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

res/res_pjsip_pubsub.c

index 43f00518e1ff9ab5ac0716c88201bc450ee430e2..c8c75c694328551525389313f624309556064034 100644 (file)
@@ -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);