changeset 18703:c1ac0d17b6a2

fix uninitialized pointer value being passed to open_stream, where it is used in comparison. Patch by Eugeniy Stepanov < eugeni P stepanov A gmail P com > Original Thread: Date: May 23, 2006 10:57 PM Subject: [MPlayer-dev-eng] [BUG][PATCH] uninitialized memory access in subreader.c
author gpoirier
date Wed, 14 Jun 2006 11:17:21 +0000
parents 351d5a711a7a
children b1d546882d90
files subreader.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/subreader.c	Wed Jun 14 10:58:09 2006 +0000
+++ b/subreader.c	Wed Jun 14 11:17:21 2006 +0000
@@ -1378,6 +1378,7 @@
     struct subreader *srp;
     
     if(filename==NULL) return NULL; //qnx segfault
+    i = 0;
     fd=open_stream (filename, NULL, &i); if (!fd) return NULL;
     
     sub_format=sub_autodetect (fd, &uses_time);