]> pilppa.org Git - uci.git/blobdiff - err.h
allow merge-import, even if the config file does not exist yet
[uci.git] / err.h
diff --git a/err.h b/err.h
index 358cadfe942f4685d0166c8fa0bb5eb5641666fb..686cde354b5d24fc3886c27a6ca217f3e0815106 100644 (file)
--- a/err.h
+++ b/err.h
@@ -43,6 +43,7 @@
 #define UCI_HANDLE_ERR(ctx) do {       \
        DPRINTF("ENTER: %s\n", __func__); \
        int __val = 0;                  \
+       ctx->errno = 0;                 \
        if (!ctx)                       \
                return UCI_ERR_INVAL;   \
        if (!ctx->internal)             \