[vlc-commits] ts: fix potential use of uninitialized variable

Rémi Duraffort git at videolan.org
Thu Jan 2 09:27:52 CET 2014


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Jan  1 19:08:55 2014 +0100| [cc67f0252776ac00452eacd826af7d343df064a9] | committer: Rémi Duraffort

ts: fix potential use of uninitialized variable

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cc67f0252776ac00452eacd826af7d343df064a9
---

 modules/demux/ts.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 5304502..f6c6fef 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -1240,6 +1240,7 @@ static int UserPmt( demux_t *p_demux, const char *psz_fmt )
     char *psz = psz_dup;
     int  i_pid;
     int  i_number;
+    ts_prg_psi_t *prg = NULL;
 
     if( !psz_dup )
         return VLC_ENOMEM;
@@ -1256,7 +1257,6 @@ static int UserPmt( demux_t *p_demux, const char *psz_fmt )
 
     /* */
     ts_pid_t *pmt = &p_sys->pid[i_pid];
-    ts_prg_psi_t *prg;
 
     msg_Dbg( p_demux, "user pmt specified (pid=%d,number=%d)", i_pid, i_number );
     PIDInit( pmt, true, NULL );



More information about the vlc-commits mailing list