aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-11-29 17:57:39 +0000
committergrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-11-29 17:57:39 +0000
commita08df77305d83afbb6bcf267d1a803ebeec02ea5 (patch)
tree6d6d4df31f9a1cefcb45efad538423101a48a983
parentbceb3707605f2062e77d45f6644a8a9fed683234 (diff)
-always use 'ret'
git-svn-id: https://gnunet.org/svn/gnunet@25166 140774ce-b5e7-0310-ab8b-a85725594a96
-rw-r--r--src/util/os_installation.c4
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;
}