[libbluray-devel] Simplify
hpi1
git at videolan.org
Fri May 15 11:23:27 CEST 2015
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri May 15 11:58:54 2015 +0300| [8e47016f9374bdc42f71b4b45852e5ecfe27f2c4] | committer: hpi1
Simplify
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=8e47016f9374bdc42f71b4b45852e5ecfe27f2c4
---
src/file/dirs_darwin.c | 17 ++---------------
1 file changed, 2 insertions(+), 15 deletions(-)
diff --git a/src/file/dirs_darwin.c b/src/file/dirs_darwin.c
index 8ff32e4..09b3c78 100644
--- a/src/file/dirs_darwin.c
+++ b/src/file/dirs_darwin.c
@@ -73,23 +73,10 @@ char *file_get_cache_home(void)
const char *file_get_config_system(const char *dir)
{
- static char *dirs = NULL; // "dir1\0dir2\0...\0dirN\0\0"
-
- if (!dirs) {
- dirs = str_printf("%s%c%c", SYSTEM_CFG_DIR, 0, 0);
- }
-
if (!dir) {
// first call
- dir = dirs;
- } else {
- // next call
- dir += strlen(dir) + 1;
- if (!*dir) {
- // end of list
- dir = NULL;
- }
+ return SYSTEM_CFG_DIR;
}
- return dir;
+ return NULL;
}
More information about the libbluray-devel
mailing list