From: xuhy Date: Thu, 11 Apr 2024 10:20:02 +0000 (+0800) Subject: Ignore the error when defining macro erroneously in spec file. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b15a67f3bed3ab5e4e45684ac76aa5a6ec931179;p=tools%2Flibrpm-tizen.git Ignore the error when defining macro erroneously in spec file. This patch is for backward compatibility (4.11). Change-Id: I32c6ad1ad0b0795dcbe82cc51043f72c22c6df45 Signed-off-by: xuhy --- diff --git a/rpmio/macro.c b/rpmio/macro.c index 0afdc047d..3e84d08df 100644 --- a/rpmio/macro.c +++ b/rpmio/macro.c @@ -579,7 +579,7 @@ doDefine(MacroBuf mb, const char * se, size_t slen, int level, int expandbody) exit: if (rc) - mb->error = 1; + mb->error = 0; _free(buf); _free(ebody); return se;