X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=libuci.c;h=0dd81fe3ba0f19bd2c28757ddb9aa2a95e398668;hp=74b3d7b935ecf2fd9d0f2b8fd1d69542c8389774;hb=92f4eac56f3cf1bf21c352193e3bf40723a6e87f;hpb=d2c85b2804aaa22e539e266b5ed4cf958d6ceb35 diff --git a/libuci.c b/libuci.c index 74b3d7b..0dd81fe 100644 --- 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; }