diff options
author | Jonathan Rose <jrose@digium.com> | 2011-03-18 16:24:19 +0000 |
---|---|---|
committer | Jonathan Rose <jrose@digium.com> | 2011-03-18 16:24:19 +0000 |
commit | f91462e7caa6daa5eeec81686b1a35ebdf799f83 (patch) | |
tree | 7b7f83ed0482c0e82804d08068c78eeee6565f59 /channels | |
parent | a4a7e95cd54ec808fefb9a2aa5ab2befc640a613 (diff) |
Merged revisions 311352 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
........
r311352 | jrose | 2011-03-18 11:19:05 -0500 (Fri, 18 Mar 2011) | 10 lines
Changes some print statements/events to use a blank string in place of NULL if the string in question is NULL.
This is supposed to improve Solaris compatibility since Solaris goes berserk when trying to output NULL strings.
(closes issue #18759)
Reported by: bklang
Patches:
null-strings.patch uploaded by bklang (license 919)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@311373 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 08f655da9..7c57171b1 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -23768,7 +23768,7 @@ static int handle_request_subscribe(struct sip_pvt *p, struct sip_request *req, if (!authpeer || AST_LIST_EMPTY(&authpeer->mailboxes)) { transmit_response(p, "404 Not found (no mailbox)", req); pvt_set_needdestroy(p, "received 404 response"); - ast_log(LOG_NOTICE, "Received SIP subscribe for peer without mailbox: %s\n", authpeer->name); + ast_log(LOG_NOTICE, "Received SIP subscribe for peer without mailbox: %s\n", S_OR(authpeer->name, "")); if (authpeer) unref_peer(authpeer, "unref_peer, from handle_request_subscribe (authpeer 4)"); return 0; |