aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);