From 1f0dd88487e45e7a712e543ce470c561d9b057c8 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Wed, 30 Dec 2009 04:05:13 +0100 Subject: [PATCH] config: Make sure lua will be able to find share/lua on Mac OS X. --- src/config/dirs_macos.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config/dirs_macos.c b/src/config/dirs_macos.c index fdb272a6da..fc91de2e1c 100644 --- a/src/config/dirs_macos.c +++ b/src/config/dirs_macos.c @@ -43,7 +43,9 @@ static pthread_once_t once = PTHREAD_ONCE_INIT; static void init_dirs( void ) { configdir = config_GetUserDir(VLC_CONFIG_DIR); - datadir = config_GetUserDir(VLC_DATA_DIR); + int ret = asprintf(&datadir, "%s/share", psz_vlcpath); + if (ret == -1) + datadir = NULL; } const char *config_GetConfDir( void ) -- 2.39.2