[PATCH 61/65] small cleanup: check uds pointer, dont assign empty value, ty FRIGN

From: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Sun, 5 Jul 2015 23:09:16 +0200

---
 ii.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ii.c b/ii.c
index 1699269..a8bcc07 100644
--- a/ii.c
+++ b/ii.c
_AT_@ -738,7 +738,7 @@ main(int argc, char *argv[])
 	Channel *c;
 	struct passwd *spw;
 	const char *key = NULL, *fullname = NULL, *host = "";
-	const char *uds = "", *service = "6667";
+	const char *uds = NULL, *service = "6667";
 	char prefix[PATH_MAX];
 	int ircfd;
 
_AT_@ -779,7 +779,7 @@ main(int argc, char *argv[])
 	if(!*host)
 		usage();
 
-	if(uds[0])
+	if(uds)
 		ircfd = udsopen(uds);
 	else
 		ircfd = tcpopen(host, service);
-- 
2.4.10
--Multipart=_Mon__9_May_2016_17_21_10_+0200_I.6cpFVydhq75aaE
Content-Type: text/x-diff;
 name="0062-Fixing-a-few-details.patch"
Content-Disposition: attachment;
 filename="0062-Fixing-a-few-details.patch"
Content-Transfer-Encoding: 7bit
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Mon May 09 2016 - 17:24:22 CEST