summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxuhy <huayong.xu@samsung.com>2024-04-11 18:20:02 +0800
committerxuhy <huayong.xu@samsung.com>2024-04-19 15:23:54 +0800
commitb15a67f3bed3ab5e4e45684ac76aa5a6ec931179 (patch)
tree2ff71156442f6a210217caa0dd482bb3f89bcba7
parent76ea0b5d4a1b8180f2552c2729d84388a77beecb (diff)
downloadlibrpm-tizen-sandbox/xuhy/fix-recursion-issue.tar.gz
librpm-tizen-sandbox/xuhy/fix-recursion-issue.tar.bz2
librpm-tizen-sandbox/xuhy/fix-recursion-issue.zip
Ignore the error when defining macro erroneously in spec file.sandbox/xuhy/fix-recursion-issue
This patch is for backward compatibility (4.11). Change-Id: I32c6ad1ad0b0795dcbe82cc51043f72c22c6df45 Signed-off-by: xuhy <huayong.xu@samsung.com>
-rw-r--r--rpmio/macro.c2
1 files changed, 1 insertions, 1 deletions
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;