diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-11-29 17:57:39 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-11-29 17:57:39 +0000 |
commit | 2e474287ecc20d6b230bf0fb6916f3b965f84e5e (patch) | |
tree | 6d6d4df31f9a1cefcb45efad538423101a48a983 /src/util/os_installation.c | |
parent | 12d56e4d734267cdfeed7e42babdbc0f87d45264 (diff) | |
download | gnunet-2e474287ecc20d6b230bf0fb6916f3b965f84e5e.tar.gz gnunet-2e474287ecc20d6b230bf0fb6916f3b965f84e5e.zip |
-always use 'ret'
Diffstat (limited to 'src/util/os_installation.c')
-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 c6dca8390..674e47a5f 100644 --- a/src/util/os_installation.c +++ b/src/util/os_installation.c | |||
@@ -429,7 +429,7 @@ os_get_gnunet_path () | |||
429 | static char * | 429 | static char * |
430 | os_get_exec_path () | 430 | os_get_exec_path () |
431 | { | 431 | { |
432 | char *ret; | 432 | char *ret = NULL; |
433 | 433 | ||
434 | #if LINUX | 434 | #if LINUX |
435 | if (NULL != (ret = get_path_from_proc_exe ())) | 435 | if (NULL != (ret = get_path_from_proc_exe ())) |
@@ -444,7 +444,7 @@ os_get_exec_path () | |||
444 | return ret; | 444 | return ret; |
445 | #endif | 445 | #endif |
446 | /* other attempts here */ | 446 | /* other attempts here */ |
447 | return NULL; | 447 | return ret; |
448 | } | 448 | } |
449 | 449 | ||
450 | 450 | ||