rename ctx->errno to ctx->err to avoid conflicts with a #define errno in the system...
[project/uci.git] / list.c
diff --git a/list.c b/list.c
index 7a703b22aa386403ab1f2ef6280e2d7cf3facd0b..6e03f18bdec9d4a4396064a6edfd1a67905887cd 100644 (file)
--- a/list.c
+++ b/list.c
@@ -74,7 +74,7 @@ uci_alloc_generic(struct uci_context *ctx, int type, const char *name, int size)
 
 error:
        free(ptr);
-       UCI_THROW(ctx, ctx->errno);
+       UCI_THROW(ctx, ctx->err);
 
 done:
        return e;