]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix potential use of uninitialized value.
authorMark Michelson <mmichelson@digium.com>
Thu, 25 Mar 2010 17:22:34 +0000 (17:22 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 25 Mar 2010 17:22:34 +0000 (17:22 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@254549 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 86398dbae28be9dea95c746bd111f41669f621e3..cdc479ecc271e1264c5e19e9eae73915214a3163 100644 (file)
@@ -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) {