Add forgotten files 1.4.70b
[polyglot.git] / uci.cpp
diff --git a/uci.cpp b/uci.cpp
index d7f63b4..35b84de 100644 (file)
--- a/uci.cpp
+++ b/uci.cpp
@@ -805,6 +805,7 @@ static void parse_option(uci_t * uci, const char string[]) {
    uci->option_nb++;\r
 \r
    opt->value=NULL;\r
+   my_string_set(&opt->value,"<empty>");\r
    opt->mode=0;\r
 \r
    opt->name = NULL;\r
@@ -847,6 +848,7 @@ static void parse_option(uci_t * uci, const char string[]) {
 \r
          if (!my_string_empty(argument)) {\r
             my_string_set(&opt->default_,argument);\r
+            my_string_set(&opt->value,argument);\r
          }\r
 \r
       } else if (my_string_equal(option,"max")) {\r