diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-03-30 02:16:32 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-03-30 02:16:32 +0100 |
commit | d7be70d92a27ca94483811b41c0d15bb761268c3 (patch) | |
tree | 3669f52db21e204c3dc8e7aefa2a105d624c5900 /FICS | |
parent | fe0901fb83f8f4d699bdf2d6f3f400d64a0c4f34 (diff) |
Do the assignment in the if
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/eco.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |