Fix buglet on debug
authorMark Spencer <markster@digium.com>
Wed, 10 May 2006 15:13:26 +0000 (15:13 +0000)
committerMark Spencer <markster@digium.com>
Wed, 10 May 2006 15:13:26 +0000 (15:13 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26525 65c4cc65-6c06-0410-ace0-fbb531ad65f3

rtp.c

diff --git a/rtp.c b/rtp.c
index b80fb30..d0d8445 100644 (file)
--- a/rtp.c
+++ b/rtp.c
@@ -763,7 +763,7 @@ int ast_rtp_early_media(struct ast_channel *dest, struct ast_channel *src)
        }
        if (!srcpr) {
                if (option_debug)
-                       ast_log(LOG_DEBUG, "Channel '%s' has no RTP, not doing anything\n", src->name);
+                       ast_log(LOG_DEBUG, "Channel '%s' has no RTP, not doing anything\n", src ? src->name : "<unspecified>");
                ast_channel_unlock(dest);
                if (src)
                        ast_channel_unlock(src);