[vlc-devel] commit: Provide a default and work around gcc ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Aug 29 12:27:24 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Aug 29 13:26:57 2009 +0300| [6c5106a701f467e314dcfb52ac363120e9524f43] | committer: Rémi Denis-Courmont 

Provide a default and work around gcc

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

 src/config/dirs_xdg.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/config/dirs_xdg.c b/src/config/dirs_xdg.c
index 6e934f7..c1d4c45 100644
--- a/src/config/dirs_xdg.c
+++ b/src/config/dirs_xdg.c
@@ -204,7 +204,7 @@ char *config_GetUserDir (vlc_userdir_t type)
     switch (type)
     {
         case VLC_HOME_DIR:
-            return config_GetHomeDir ();
+            break;
         case VLC_CONFIG_DIR:
             return config_GetAppDir ("CONFIG", ".config");
         case VLC_DATA_DIR:
@@ -229,5 +229,5 @@ char *config_GetUserDir (vlc_userdir_t type)
         case VLC_VIDEOS_DIR:
             return config_GetTypeDir ("VIDEOS");
     }
-    assert (0);
+    return config_GetHomeDir ();
 }




More information about the vlc-devel mailing list