changeset 17788:2fe769b4b30b

Fix potential read from an unitialized pointer (CID: 236)
author rtognimp
date Thu, 09 Mar 2006 22:09:03 +0000
parents 6eb3a513abb9
children 9f0c42967ce5
files libmpdemux/demux_real.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_real.c	Thu Mar 09 18:05:38 2006 +0000
+++ b/libmpdemux/demux_real.c	Thu Mar 09 22:09:03 2006 +0000
@@ -1207,7 +1207,7 @@
 		int codec_pos;
 		int tmp;
 		int len;
-		char *descr, *mimet;
+		char *descr, *mimet = NULL;
 
 		stream_id = stream_read_word(demuxer->stream);
 		mp_msg(MSGT_DEMUX,MSGL_V,"Found new stream (id: %d)\n", stream_id);