X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Fclient%2Fio.c;h=ec724786a4b1b87bf607f33b08d3556b273a46cd;hb=c71e88db87903bf5d58dbb3a1db4b05371fa7c31;hp=c0cf977bf0d802ec24f9cb3207ab2154ebe59b0d;hpb=edebb2bf9aa780ee2f7006c1d2be9168564d34df;p=plomrogue
diff --git a/src/client/io.c b/src/client/io.c
index c0cf977..ec72478 100644
--- a/src/client/io.c
+++ b/src/client/io.c
@@ -1,4 +1,9 @@
-/* src/client/io.c */
+/* src/client/io.c
+ *
+ * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
+ * or any later version. For details on its copyright, license, and warranties,
+ * see the file NOTICE in the root directory of the PlomRogue source package.
+ */
#define _POSIX_C_SOURCE 1 /* PIPE_BUF */
#include "io.h"
@@ -98,7 +103,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 +151,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);
}