Move common instruction out of ifdef
Both ifdef-branches return server_path.
This commit is contained in:
parent
7229e3cce0
commit
156d958e77
1 changed files with 2 additions and 3 deletions
|
@ -47,8 +47,6 @@ get_server_path(void) {
|
||||||
LOGE("Could not allocate memory");
|
LOGE("Could not allocate memory");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
// the absolute path is hardcoded
|
|
||||||
return server_path;
|
|
||||||
#else
|
#else
|
||||||
char *server_path = get_local_file_path(SERVER_FILENAME);
|
char *server_path = get_local_file_path(SERVER_FILENAME);
|
||||||
if (!server_path) {
|
if (!server_path) {
|
||||||
|
@ -58,8 +56,9 @@ get_server_path(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
LOGD("Using server (portable): %s", server_path);
|
LOGD("Using server (portable): %s", server_path);
|
||||||
return server_path;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
return server_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
|
|
Loading…
Reference in a new issue