X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=uci_internal.h;h=02f81f52b8e6936483b1564215f0278fd62da0e2;hp=3bd55a177b43203285bf96e271db287229e5f4fe;hb=2e90d2637abcbea12f5f4070be7a158fb4637604;hpb=fdbcc5e94b080e501701885c8fc731b48ff946b0 diff --git a/uci_internal.h b/uci_internal.h index 3bd55a1..02f81f5 100644 --- a/uci_internal.h +++ b/uci_internal.h @@ -9,7 +9,7 @@ * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * GNU Lesser General Public License for more details. */ #ifndef __UCI_INTERNAL_H @@ -186,9 +186,9 @@ struct uci_backend _var = { \ #define UCI_HANDLE_ERR(ctx) do { \ DPRINTF("ENTER: %s\n", __func__); \ int __val = 0; \ - ctx->err = 0; \ if (!ctx) \ return UCI_ERR_INVAL; \ + ctx->err = 0; \ if (!ctx->internal && !ctx->nested) \ __val = setjmp(ctx->trap); \ ctx->internal = false; \