From: Felix Fietkau Date: Thu, 4 Sep 2008 23:20:09 +0000 (+0200) Subject: fix uci batch nesting check (patch by lars) X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=717cda86ce1c902b71061ff19768a8567cf1074e;p=uci.git fix uci batch nesting check (patch by lars) --- diff --git a/cli.c b/cli.c index 305d9fe..9a4f819 100644 --- a/cli.c +++ b/cli.c @@ -440,6 +440,7 @@ static int uci_batch(void) { int ret = 0; + flags |= CLI_FLAG_BATCH; while (!feof(input)) { struct uci_element *e, *tmp; @@ -454,6 +455,8 @@ static int uci_batch(void) uci_unload(ctx, uci_to_package(e)); } } + flags &= ~CLI_FLAG_BATCH; + return 0; }