]> pilppa.org Git - uci.git/blobdiff - libuci.c
load the saved history by default to make things easier for the lua binding
[uci.git] / libuci.c
index 5b5db54718a5bb6dc20fc52ade8404397aa6a9f3..5872ae4220a8fff2810a68aa7e83b9a97a329396 100644 (file)
--- a/libuci.c
+++ b/libuci.c
@@ -56,7 +56,7 @@ struct uci_context *uci_alloc_context(void)
        uci_list_init(&ctx->root);
        uci_list_init(&ctx->history_path);
        uci_list_init(&ctx->backends);
-       ctx->flags = UCI_FLAG_STRICT;
+       ctx->flags = UCI_FLAG_STRICT | UCI_FLAG_SAVED_HISTORY;
 
        ctx->confdir = (char *) uci_confdir;
        ctx->savedir = (char *) uci_savedir;