diff options
-rw-r--r-- | src/util/os_installation.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/os_installation.c b/src/util/os_installation.c index c6dca83909..674e47a5fe 100644 --- a/src/util/os_installation.c +++ b/src/util/os_installation.c @@ -429,7 +429,7 @@ os_get_gnunet_path () static char * os_get_exec_path () { - char *ret; + char *ret = NULL; #if LINUX if (NULL != (ret = get_path_from_proc_exe ())) @@ -444,7 +444,7 @@ os_get_exec_path () return ret; #endif /* other attempts here */ - return NULL; + return ret; } |