-always use 'ret'
authorChristian Grothoff <christian@grothoff.org>
Thu, 29 Nov 2012 17:57:39 +0000 (17:57 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 29 Nov 2012 17:57:39 +0000 (17:57 +0000)
src/util/os_installation.c

index c6dca83909528f323d00d38e4ffba91494c02566..674e47a5fe6b22b91f59c09815dcab5e5b178fab 100644 (file)
@@ -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;
 }