From: Jeff Burdges Date: Wed, 3 Aug 2016 19:22:01 +0000 (+0000) Subject: Not reason, but the macro exists so I'll use it I guess. X-Git-Tag: initial-import-from-subversion-38251~432 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=365eaaa2477eea227fde8503d6af56b3e12a84a1;p=oweals%2Fgnunet.git Not reason, but the macro exists so I'll use it I guess. --- diff --git a/src/util/socks.c b/src/util/socks.c index 4a790ac94..30a430fbe 100644 --- a/src/util/socks.c +++ b/src/util/socks.c @@ -602,7 +602,7 @@ GNUNET_SOCKS_do_connect (const char *service_name, GNUNET_CONFIGURATION_get_value_string (cfg, service_name, "SOCKSHOST", &host0)) host0 = NULL; socks5 = GNUNET_CONNECTION_create_from_connect (cfg, (host0 != NULL)? host0:"127.0.0.1", port0); - if (host0) GNUNET_free (host0); + GNUNET_free_non_null (host0); /* Sets to NULL if they do not exist */ (void)GNUNET_CONFIGURATION_get_value_string (cfg, service_name, "SOCKSUSER", &user);