X-Git-Url: http://winboard.nl/cgi-bin?p=polyglot.git;a=blobdiff_plain;f=uci.cpp;h=35b84defe2e66ab3dd9de5e4fb872bb1ede39f92;hp=d7f63b4859abe608c5ce272dfa3c1ade9b8349a6;hb=8c1404cd360afdaba0b47685c1d482ba3356dbb1;hpb=5cd5185613348b13625e257efcd7b2f11ca85276 diff --git a/uci.cpp b/uci.cpp index d7f63b4..35b84de 100644 --- a/uci.cpp +++ b/uci.cpp @@ -805,6 +805,7 @@ static void parse_option(uci_t * uci, const char string[]) { uci->option_nb++; opt->value=NULL; + my_string_set(&opt->value,""); opt->mode=0; opt->name = NULL; @@ -847,6 +848,7 @@ static void parse_option(uci_t * uci, const char string[]) { if (!my_string_empty(argument)) { my_string_set(&opt->default_,argument); + my_string_set(&opt->value,argument); } } else if (my_string_equal(option,"max")) {