Fix buglet on debug

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26525 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2006-05-10 15:13:26 +00:00
parent b5a7328dbe
commit 8e9e1ac6bc

2
rtp.c
View File

@@ -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);