[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:15 CEST 2009


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

Remove the old .vlc/vlcrc after parsing

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

 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 5d0f377..6770893 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 );
         }




More information about the vlc-devel mailing list