ref: 27d3f1c044b4846b1315bbeb033a1d840f04aff9
parent: c742035599091e6c9a19990a5c3437f4c3ca388c
author: zamfofex <zamfofex@twdb.moe>
date: Fri Oct 13 12:56:47 EDT 2023
apply small fixes
--- a/tools/lichess.c
+++ b/tools/lichess.c
@@ -44,6 +44,8 @@
exit(1);
}
+ fd = -1;
+
for (info = infos ; info != NULL ; info = info->ai_next)
{fd = socket(info->ai_family, info->ai_socktype, info->ai_protocol);
@@ -683,7 +685,7 @@
game = malloc(sizeof *game);
if (game == NULL)
{- fprintf(stderr, "%s: could not allocate game\n", game->argv0);
+ fprintf(stderr, "%s: could not allocate game\n", argv0);
exit(1);
}
--
⑨