]> git.sesse.net Git - vlc/commitdiff
Fix free() warning
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 3 Aug 2009 17:13:36 +0000 (20:13 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 3 Aug 2009 17:13:36 +0000 (20:13 +0300)
modules/misc/logger.c

index a9da6d94ba877121fdead127036a0f41dc2ea827..e3902fd1126636a3a68914ad96d81bccd8f410b7 100644 (file)
@@ -285,8 +285,7 @@ static int Open( vlc_object_t *p_this )
         p_sys->msg.p_file = NULL;
 #ifdef HAVE_SYSLOG_H
         int i_facility;
-        const char *const psz_facility =
-                             var_CreateGetString( p_intf, "syslog-facility" );
+        char *psz_facility = var_CreateGetString( p_intf, "syslog-facility" );
         if( psz_facility )
         {
             bool b_valid = 0;