From 4e0e1535c996a66716b1a8530d34ea2ece79c1c2 Mon Sep 17 00:00:00 2001 From: Mark Michelson Date: Mon, 13 Aug 2012 19:49:31 +0000 Subject: [PATCH] Fix problem where incorrect pointer was checked for nullity. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@371198 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 82121c2189..a8a463c149 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -15406,7 +15406,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);*/ -- 2.47.3