From: Mark Michelson Date: Thu, 25 Mar 2010 17:22:34 +0000 (+0000) Subject: Fix potential use of uninitialized value. X-Git-Tag: 1.6.0.27-rc1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afd7a846d138bc7774c2a3ee305897269b284f4b;p=thirdparty%2Fasterisk.git Fix potential use of uninitialized value. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@254549 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 86398dbae2..cdc479ecc2 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -19075,6 +19075,8 @@ static int acf_channel_read(struct ast_channel *chan, const char *funcname, char stream = p->vrtp; } else if (!strcasecmp(args.type, "text")) { stream = p->trtp; + } else { + stream = NULL; } if (!stream) {