[vlc-commits] osx: fix config_GetLibDir

Rafaël Carré git at videolan.org
Fri Jan 27 09:59:16 CET 2012


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Fri Jan 27 03:59:00 2012 -0500| [f234aee996fc01ee46915a8e794c95fe9774a2e5] | committer: Rafaël Carré

osx: fix config_GetLibDir

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

 src/posix/darwin_dirs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/posix/darwin_dirs.c b/src/posix/darwin_dirs.c
index 6fc5d87..96b1e16 100644
--- a/src/posix/darwin_dirs.c
+++ b/src/posix/darwin_dirs.c
@@ -107,7 +107,7 @@ char *config_GetLibDir (void)
     char *path = config_GetLibPath ();
     if (path != NULL)
     {
-        char *p = strrchr (p, '/');
+        char *p = strrchr (path, '/');
         if (p != NULL)
         {
             *p = '\0';



More information about the vlc-commits mailing list