From: RĂ©mi Denis-Courmont Date: Sat, 24 Oct 2009 17:15:42 +0000 (+0300) Subject: Remove the old .vlc/vlcrc after parsing X-Git-Tag: 1.1.0-ff~2725 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=f39e15fcb0683e40f13d2b1575f3096db59ee073;p=vlc Remove the old .vlc/vlcrc after parsing --- diff --git a/src/config/file.c b/src/config/file.c index 5d0f3772a3..6770893723 100644 --- a/src/config/file.c +++ b/src/config/file.c @@ -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 ); }