Change default UCI name to "unknown"
authorH.G.Muller <hgm@hgm-xboard.(none)>
Sat, 30 Aug 2014 08:58:32 +0000 (10:58 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Sat, 30 Aug 2014 09:11:46 +0000 (11:11 +0200)
The old default for uninitialized strings, "<empty>", was inconvenient
because it contained characters that are not allowed in filenames,
and WinBoard constructs the proposed name for saving PGN from it.
(Which then tickles a bug in the Windows file-browse dialog.)

uci.c

diff --git a/uci.c b/uci.c
index 64cbdce..bb6d0b2 100644 (file)
--- a/uci.c
+++ b/uci.c
@@ -130,7 +130,7 @@ void uci_open(uci_t * uci, engine_t * engine) {
    uci->engine = engine;
 
    uci->name = NULL;
-   my_string_set(&uci->name,"<empty>");
+   my_string_set(&uci->name,"unknown");
    uci->author = NULL;
    my_string_set(&uci->author,"<empty>");
    option_init(uci->option);