[PATCH 09/65] check if fullname is set and non-empty

From: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Wed, 16 Apr 2014 17:27:35 +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 e5c80e7..591acfb 100644
--- a/ii.c
+++ b/ii.c
_AT_@ -555,7 +555,7 @@ main(int argc, char *argv[]) {
 	create_dirtree(path);
 
 	add_channel(""); /* master channel */
-	login(ircfd, host, key, fullname ? fullname : nick);
+	login(ircfd, host, key, fullname && *fullname ? fullname : nick);
 	run(ircfd, host);
 
 	return EXIT_SUCCESS;
-- 
2.4.10
--Multipart=_Mon__9_May_2016_17_21_10_+0200_I.6cpFVydhq75aaE
Content-Type: text/x-diff;
 name="0010-check-if-host-and-nick-are-non-empty.patch"
Content-Disposition: attachment;
 filename="0010-check-if-host-and-nick-are-non-empty.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