diff options
Diffstat (limited to 'android/utils/bufprint.c')
-rw-r--r-- | android/utils/bufprint.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/android/utils/bufprint.c b/android/utils/bufprint.c index 4309a4b..45d411f 100644 --- a/android/utils/bufprint.c +++ b/android/utils/bufprint.c @@ -180,7 +180,9 @@ bufprint_config_path(char* buff, char* end) return bufprint(buff, end, "%s\\%s", path, _ANDROID_PATH ); } #else - const char* home = getenv("HOME"); + const char* home = getenv("ANDROID_SDK_HOME"); + if (home == NULL) + home = getenv("HOME"); if (home == NULL) home = "/tmp"; return bufprint(buff, end, "%s/%s", home, _ANDROID_PATH ); |