summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/conf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/conf.c b/src/conf.c
index bc29ba7..ee993ec 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -164,9 +164,14 @@ int conf_path_get(char *path, size_t sz)
return 0;
}
+#ifdef __ANDROID__
+ str_ncpy(buf, "/data/local/tmp", sizeof(buf));
+ (void)err;
+#else
err = fs_gethome(buf, sizeof(buf));
if (err)
return err;
+#endif
if (re_snprintf(path, sz, "%s" DIR_SEP ".baresip", buf) < 0)
return ENOMEM;