From 7043677e6515c5ea997baf431eaf90251939ef05 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Mon, 1 Jan 2024 12:19:19 +0100 Subject: Compare against null --- FICS/fics_addplayer.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'FICS') diff --git a/FICS/fics_addplayer.c b/FICS/fics_addplayer.c index d3fb662..3da7010 100644 --- a/FICS/fics_addplayer.c +++ b/FICS/fics_addplayer.c @@ -80,17 +80,18 @@ main(int argc, char *argv[]) break; } } else { - if (!funame) + if (funame == NULL) funame = argv[i]; - else if (!fname) + else if (fname == NULL) fname = argv[i]; - else if (!email) + else if (email == NULL) email = argv[i]; else usage(argv[0]); } } - if (!funame || !fname || !email) + + if (funame == NULL || fname == NULL || email == NULL) usage(argv[0]); /* Add the player here */ -- cgit v1.2.3