X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=libuci.c;h=5b5db54718a5bb6dc20fc52ade8404397aa6a9f3;hp=59e2ea96c42fd4dcf1fabe3b2b5df2e35f6b4390;hb=f1ae2ddc4ff16e541c46f595073bf277cd8f778a;hpb=7cefa00eadb4292d2c915a38a86e588c6e539d26 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;