[vlc-commits] mjpeg: Avoid potential read of uninitialized value.
Hugo Beauzée-Luyssen
git at videolan.org
Fri Jun 1 17:07:11 CEST 2012
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Jun 1 16:57:04 2012 +0200| [c3f877ed69b8d4f98922e8c0478970b244a1398e] | committer: Hugo Beauzée-Luyssen
mjpeg: Avoid potential read of uninitialized value.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c3f877ed69b8d4f98922e8c0478970b244a1398e
---
modules/demux/mjpeg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/mjpeg.c b/modules/demux/mjpeg.c
index 9006f20..8315ca2 100644
--- a/modules/demux/mjpeg.c
+++ b/modules/demux/mjpeg.c
@@ -173,7 +173,7 @@ static char* GetLine( demux_t *p_demux, int *p_pos )
static bool CheckMimeHeader( demux_t *p_demux, int *p_header_size )
{
bool b_jpeg = false;
- int i_pos;
+ int i_pos = 0;
char *psz_line;
char *p_ch;
demux_sys_t *p_sys = p_demux->p_sys;
More information about the vlc-commits
mailing list