Remove the old .vlc/vlcrc after parsing
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 24 Oct 2009 17:15:42 +0000 (20:15 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 24 Oct 2009 17:15:42 +0000 (20:15 +0300)
src/config/file.c

index 5d0f377..6770893 100644 (file)
@@ -118,6 +118,9 @@ static FILE *config_OpenConfigFile( vlc_object_t *p_obj )
                     }
                     free( psz_readme );
                 }
+                /* Remove the old configuration file so that --reset-config
+                 * can work properly. */
+                unlink( psz_old );
             }
             free( psz_old );
         }