[vlc-commits] demux: ttml: uninit illegal access (cid #1405678)

Francois Cartegnie git at videolan.org
Fri Apr 28 10:36:45 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Apr 28 10:33:26 2017 +0200| [0ebdd650cb0a81fab8af82775b920758fe28a757] | committer: Francois Cartegnie

demux: ttml: uninit illegal access (cid #1405678)

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

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

diff --git a/modules/demux/ttml.c b/modules/demux/ttml.c
index 14c9ffcea8..1d136bd701 100644
--- a/modules/demux/ttml.c
+++ b/modules/demux/ttml.c
@@ -447,7 +447,7 @@ int OpenDemux( vlc_object_t* p_this )
             "=\"http://www.w3.org/2006/04/ttaf1\"",
             "=\"http://www.w3.org/2006/10/ttaf1\"",
         };
-        const char *psz_ns;
+        const char *psz_ns = NULL;
         for( size_t i=0; i<ARRAY_SIZE(rgsz) && !psz_ns; i++ )
         {
             psz_ns = strnstr( psz_xml, rgsz[i],



More information about the vlc-commits mailing list