aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/fics_addplayer.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-01-01 12:19:19 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-01-01 12:19:19 +0100
commit7043677e6515c5ea997baf431eaf90251939ef05 (patch)
treecf59d91d3f622a5eab1fcea99318f88d449bdfee /FICS/fics_addplayer.c
parent1970aa2204f071f355e5b58d1622e4ea7db9b95f (diff)
Compare against null
Diffstat (limited to 'FICS/fics_addplayer.c')
-rw-r--r--FICS/fics_addplayer.c9
1 files changed, 5 insertions, 4 deletions
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 */