From: H.G.Muller Date: Sat, 30 Aug 2014 08:58:32 +0000 (+0200) Subject: Change default UCI name to "unknown" X-Git-Url: http://winboard.nl/cgi-bin?p=polyglot.git;a=commitdiff_plain;h=8810e7e13336fdc9e208d2966f3773aab8ecad82 Change default UCI name to "unknown" The old default for uninitialized strings, "", 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.) --- diff --git a/uci.c b/uci.c index 64cbdce..bb6d0b2 100644 --- 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,""); + my_string_set(&uci->name,"unknown"); uci->author = NULL; my_string_set(&uci->author,""); option_init(uci->option);