X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;ds=sidebyside;f=src%2Fclient%2Fio.c;h=39fd75e657526cc7ea4a45f1a53eac330f1c9a91;hb=491e8bc8e7a9b1d312256817c0b8be7e05b127be;hp=c0cf977bf0d802ec24f9cb3207ab2154ebe59b0d;hpb=3dedf6344c941891491773d1cc5d647aa664b218;p=plomrogue diff --git a/src/client/io.c b/src/client/io.c index c0cf977..39fd75e 100644 --- a/src/client/io.c +++ b/src/client/io.c @@ -98,7 +98,7 @@ static void read_inventory(char * read_buf, uint32_t linemax, FILE * file) break; } int old_size = 0; - if (NULL != world.player_inventory) + if (world.player_inventory) { old_size = strlen(world.player_inventory); } @@ -146,7 +146,7 @@ static void read_log(char * read_buf, uint32_t linemax, FILE * file) while (try_fgets(read_buf, linemax + 1, file, __func__)) { int old_size = 0; - if (NULL != world.log) + if (world.log) { old_size = strlen(world.log); }