[PATCH 10/65] check if host and nick are non-empty

From: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Wed, 16 Apr 2014 17:28:18 +0200

Signed-off-by: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
---
 ii.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ii.c b/ii.c
index 591acfb..a480ec3 100644
--- a/ii.c
+++ b/ii.c
_AT_@ -546,7 +546,7 @@ main(int argc, char *argv[]) {
 			break;
 	} ARGEND;
 
-	if (argc < 1 || !*host)
+	if(!*host || !*nick)
 		usage();
 
 	ircfd = tcpopen(host, port);
-- 
2.4.10
--Multipart=_Mon__9_May_2016_17_21_10_+0200_I.6cpFVydhq75aaE
Content-Type: text/x-diff;
 name="0011-fix-use-global-ircfd-dont-send-to-c-fd.patch"
Content-Disposition: attachment;
 filename="0011-fix-use-global-ircfd-dont-send-to-c-fd.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