]> git.sesse.net Git - vlc/commitdiff
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 5d0f3772a3995b32a1f72ddc16558cb4c691258e..67708937232691302d851fcf2559632b7ae1bd75 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 );
         }