Fix unitialized value
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 12 Oct 2008 18:50:35 +0000 (21:50 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 12 Oct 2008 19:44:57 +0000 (22:44 +0300)
modules/misc/logger.c

index 713a8ea..a5610f0 100644 (file)
@@ -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 );