From f39e15fcb0683e40f13d2b1575f3096db59ee073 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 24 Oct 2009 20:15:42 +0300 Subject: [PATCH] Remove the old .vlc/vlcrc after parsing --- src/config/file.c | 3 +++ 1 file changed, 3 insertions(+) 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 ); } -- 2.39.2