Ignore the error when defining macro erroneously in spec file. 17/310017/1 sandbox/xuhy/fix-recursion-issue
authorxuhy <huayong.xu@samsung.com>
Thu, 11 Apr 2024 10:20:02 +0000 (18:20 +0800)
committerxuhy <huayong.xu@samsung.com>
Fri, 19 Apr 2024 07:23:54 +0000 (15:23 +0800)
This patch is for backward compatibility (4.11).

Change-Id: I32c6ad1ad0b0795dcbe82cc51043f72c22c6df45
Signed-off-by: xuhy <huayong.xu@samsung.com>
rpmio/macro.c

index 0afdc047dc72077fda6a0392e57d05965aacf16e..3e84d08df2fca7be57ac59e8ac1ca025de098a13 100644 (file)
@@ -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;