diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-20 16:38:37 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-20 16:38:37 +0000 |
commit | 863e2904baf1c0a64360d9890edfe5b35d72a979 (patch) | |
tree | 8db6dc6905c991df86aaec6cb5bcbf544b33fa01 /src | |
parent | 37e614f321caf2fddab72c4055e35d1b360bfd59 (diff) | |
download | gnunet-863e2904baf1c0a64360d9890edfe5b35d72a979.tar.gz gnunet-863e2904baf1c0a64360d9890edfe5b35d72a979.zip |
-handle NULL in unixpath
Diffstat (limited to 'src')
-rw-r--r-- | src/util/client.c | 2 | ||||
-rw-r--r-- | src/util/service.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/util/client.c b/src/util/client.c index 6c5e93ce4..30c80bf03 100644 --- a/src/util/client.c +++ b/src/util/client.c | |||
@@ -263,6 +263,8 @@ try_unixpath (const char *service_name, | |||
263 | unixpath = GNUNET_NETWORK_shorten_unixpath (unixpath); | 263 | unixpath = GNUNET_NETWORK_shorten_unixpath (unixpath); |
264 | LOG (GNUNET_ERROR_TYPE_INFO, | 264 | LOG (GNUNET_ERROR_TYPE_INFO, |
265 | _("Using `%s' instead\n"), unixpath); | 265 | _("Using `%s' instead\n"), unixpath); |
266 | if (NULL == unixpath) | ||
267 | return NULL; | ||
266 | } | 268 | } |
267 | connection = GNUNET_CONNECTION_create_from_connect_to_unixpath (cfg, unixpath); | 269 | connection = GNUNET_CONNECTION_create_from_connect_to_unixpath (cfg, unixpath); |
268 | if (NULL != connection) | 270 | if (NULL != connection) |
diff --git a/src/util/service.c b/src/util/service.c index 9e624ebbd..b91be9664 100644 --- a/src/util/service.c +++ b/src/util/service.c | |||
@@ -995,7 +995,6 @@ GNUNET_SERVICE_get_server_addresses (const char *service_name, | |||
995 | unixpath = GNUNET_NETWORK_shorten_unixpath (unixpath); | 995 | unixpath = GNUNET_NETWORK_shorten_unixpath (unixpath); |
996 | LOG (GNUNET_ERROR_TYPE_INFO, | 996 | LOG (GNUNET_ERROR_TYPE_INFO, |
997 | _("Using `%s' instead\n"), unixpath); | 997 | _("Using `%s' instead\n"), unixpath); |
998 | |||
999 | } | 998 | } |
1000 | } | 999 | } |
1001 | if (NULL != unixpath) | 1000 | if (NULL != unixpath) |