]> pilppa.org Git - uci.git/blobdiff - libuci.c
add strict mode flag (enabled by default, can be disabled to ignore lines with parser...
[uci.git] / libuci.c
index 74b3d7b935ecf2fd9d0f2b8fd1d69542c8389774..0dd81fe3ba0f19bd2c28757ddb9aa2a95e398668 100644 (file)
--- a/libuci.c
+++ b/libuci.c
@@ -47,6 +47,7 @@ struct uci_context *uci_alloc_context(void)
        ctx = (struct uci_context *) malloc(sizeof(struct uci_context));
        memset(ctx, 0, sizeof(struct uci_context));
        uci_list_init(&ctx->root);
+       ctx->flags = UCI_FLAG_STRICT;
 
        return ctx;
 }