home · contact · privacy
Remove redundant uses of NULL.
[plomrogue] / src / client / io.c
index c0cf977bf0d802ec24f9cb3207ab2154ebe59b0d..39fd75e657526cc7ea4a45f1a53eac330f1c9a91 100644 (file)
@@ -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);
         }