summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2016-06-05 23:08:32 +0200
committerAlfred E. Heggestad <aeh@db.org>2016-06-05 23:08:32 +0200
commit7e7251b8cb8c5f4f8490890a5a1c1706e080f45d (patch)
tree115abcf0e2c6465d3c90f36735e52e9290c3409c /src
parent65bd41ad6e1439accf6a247dc1f17ea3f796c59e (diff)
conf: use macro CONFIG_PATH if defined (ref #134)
Diffstat (limited to 'src')
-rw-r--r--src/conf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf.c b/src/conf.c
index ee993ec..cc7b19f 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -164,8 +164,8 @@ int conf_path_get(char *path, size_t sz)
return 0;
}
-#ifdef __ANDROID__
- str_ncpy(buf, "/data/local/tmp", sizeof(buf));
+#ifdef CONFIG_PATH
+ str_ncpy(buf, CONFIG_PATH, sizeof(buf));
(void)err;
#else
err = fs_gethome(buf, sizeof(buf));