[vlc-devel] commit: Remove the old .vlc/vlcrc after parsing ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Oct 24 19:18:54 CEST 2009


vlc | branch: 1.0-bugfix | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 24 20:15:42 2009 +0300| [c14784efc6b001b0cffdf91afb44d745c1c92c0a] | committer: Rémi Denis-Courmont 

Remove the old .vlc/vlcrc after parsing
(cherry picked from commit f39e15fcb0683e40f13d2b1575f3096db59ee073)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c14784efc6b001b0cffdf91afb44d745c1c92c0a
---

 src/config/file.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/config/file.c b/src/config/file.c
index 01c0332..e2c92ec 100644
--- a/src/config/file.c
+++ b/src/config/file.c
@@ -117,6 +117,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 );
         }




More information about the vlc-devel mailing list