From: Christian Grothoff Date: Thu, 29 Nov 2012 17:57:39 +0000 (+0000) Subject: -always use 'ret' X-Git-Tag: initial-import-from-subversion-38251~10676 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2e474287ecc20d6b230bf0fb6916f3b965f84e5e;p=oweals%2Fgnunet.git -always use 'ret' --- 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 () 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; }