]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix problem where incorrect pointer was checked for nullity.
authorMark Michelson <mmichelson@digium.com>
Mon, 13 Aug 2012 19:51:19 +0000 (19:51 +0000)
committerMark Michelson <mmichelson@digium.com>
Mon, 13 Aug 2012 19:51:19 +0000 (19:51 +0000)
........

Merged revisions 371198 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@371199 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 3b929bf66d06b319499940f534556d2771d9c48e..3de2930ddc6c9c31ea3b10a942fc427fde222a06 100644 (file)
@@ -15818,7 +15818,7 @@ static int get_rdnis(struct sip_pvt *p, struct sip_request *oreq, char **name, c
                pbx_builtin_setvar_helper(p->owner, "__SIPRDNISDOMAIN", rdomain);
 
        if (sip_debug_test_pvt(p))
-               ast_verbose("RDNIS for this call is %s (reason %s)\n", exten, reason ? reason_param : "");
+               ast_verbose("RDNIS for this call is %s (reason %s)\n", exten, S_OR(reason_param, ""));
 
        /*ast_string_field_set(p, rdnis, rexten);*/