gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r29445 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r29445 - gnunet/src/util
Date: Fri, 20 Sep 2013 18:38:37 +0200

Author: grothoff
Date: 2013-09-20 18:38:37 +0200 (Fri, 20 Sep 2013)
New Revision: 29445

Modified:
   gnunet/src/util/client.c
   gnunet/src/util/service.c
Log:
-handle NULL in unixpath

Modified: gnunet/src/util/client.c
===================================================================
--- gnunet/src/util/client.c    2013-09-20 16:35:27 UTC (rev 29444)
+++ gnunet/src/util/client.c    2013-09-20 16:38:37 UTC (rev 29445)
@@ -263,6 +263,8 @@
       unixpath = GNUNET_NETWORK_shorten_unixpath (unixpath);
       LOG (GNUNET_ERROR_TYPE_INFO,
           _("Using `%s' instead\n"), unixpath);
+      if (NULL == unixpath)
+       return NULL;
     }
     connection = GNUNET_CONNECTION_create_from_connect_to_unixpath (cfg, 
unixpath);
     if (NULL != connection)

Modified: gnunet/src/util/service.c
===================================================================
--- gnunet/src/util/service.c   2013-09-20 16:35:27 UTC (rev 29444)
+++ gnunet/src/util/service.c   2013-09-20 16:38:37 UTC (rev 29445)
@@ -995,7 +995,6 @@
       unixpath = GNUNET_NETWORK_shorten_unixpath (unixpath);
       LOG (GNUNET_ERROR_TYPE_INFO,
           _("Using `%s' instead\n"), unixpath);
-
     }
   }
   if (NULL != unixpath)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]