X-Git-Url: http://git.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=libuci.c;fp=libuci.c;h=5b5db54718a5bb6dc20fc52ade8404397aa6a9f3;hp=59e2ea96c42fd4dcf1fabe3b2b5df2e35f6b4390;hb=51b60a322aff3fd1045fb6c9eb289ade2de54e71;hpb=d4bab379481c8ef0d5710a616660f1d7144d768f diff --git a/libuci.c b/libuci.c index 59e2ea9..5b5db54 100644 --- a/libuci.c +++ b/libuci.c @@ -137,7 +137,7 @@ void uci_perror(struct uci_context *ctx, const char *prefix) if (!ctx) err = UCI_ERR_INVAL; else - err = ctx->errno; + err = ctx->err; if ((err < 0) || (err >= UCI_ERR_LAST)) err = UCI_ERR_UNKNOWN;