src/main.c

changeset 87
d4d67105d4e1
parent 84
df47b7efb97d
--- a/src/main.c	Sun Nov 30 22:42:46 2025 +0100
+++ b/src/main.c	Fri Mar 27 18:11:42 2026 +0100
@@ -112,8 +112,6 @@
 "  -h            This help page\n"
 "  -p            TCP port to use (default: 27015)\n"
 "  -U            Disables unicode pieces\n"
-// TODO: implement and activate feature
-//"  -S <PGN file> Compute and print statistics for the specified game\n"
 "  -v            Print version information and exits\n"
 "\nServer options\n"
 "  -a <time>     Specifies the time to add after each move\n"
@@ -154,8 +152,7 @@
 }
 
 static Settings default_settings() {
-    Settings settings;
-    memset(&settings, 0, sizeof(Settings));
+    Settings settings = {0};
     settings.gameinfo.servercolor = WHITE;
     settings.port = "27015";
     settings.unicode = !!setlocale(LC_CTYPE, "C.UTF-8");

mercurial