aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-03-30 02:16:32 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-03-30 02:16:32 +0100
commitd7be70d92a27ca94483811b41c0d15bb761268c3 (patch)
tree3669f52db21e204c3dc8e7aefa2a105d624c5900 /FICS
parentfe0901fb83f8f4d699bdf2d6f3f400d64a0c4f34 (diff)
Do the assignment in the if
Diffstat (limited to 'FICS')
-rw-r--r--FICS/eco.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/FICS/eco.c b/FICS/eco.c
index c25d54c..1cae520 100644
--- a/FICS/eco.c
+++ b/FICS/eco.c
@@ -269,8 +269,7 @@ LONG_init(void)
continue;
sscanf(ptmp, "%[^*\n]", LONG);
- LONG_book[i] = malloc(sizeof(LONG_entry));
- if (LONG_book[i] == NULL) {
+ if ((LONG_book[i] = malloc(sizeof(LONG_entry))) == NULL) {
fprintf(stderr, "Cound not alloc mem for "
"LONG entry %d.\n", i);
exit(1);