[vlc-devel] commit: Fix unitialized value ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Oct 12 21:45:27 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Oct 12 21:50:35 2008 +0300| [a9d31e8c1f119eb914491905566053b7e2844d50] | committer: Rémi Denis-Courmont 

Fix unitialized value

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

 modules/misc/logger.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/modules/misc/logger.c b/modules/misc/logger.c
index 713a8ea..a5610f0 100644
--- a/modules/misc/logger.c
+++ b/modules/misc/logger.c
@@ -271,9 +271,14 @@ static int Open( vlc_object_t *p_this )
                             VLC_THREAD_PRIORITY_LOW))
                 p_sys->rrd.stream = rrd;
             else
+            {
                 fclose (rrd);
+                p_sys->rrd.stream = NULL;
+            }
         }
     }
+    else
+        p_sys->rrd.stream = NULL;
     free( psz_rrd_file );
 
     p_sys->p_sub = msg_Subscribe( p_intf );




More information about the vlc-devel mailing list