mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
gnulib: Bring back the fix for resolving unused variable issue
This patch resolved a minor issue spotted by Coverity:a983d36bd9(gnulib/regexec: Resolve unused variable) But, it was removed by the Gnulib update:2b79024598(Update gnulib version and drop most gnulib patches) It caused Coverity to continue to flag the issue. Daniel Kiper suggested to bring back the patcha983d36bd9(gnulib/regexec: Resolve unused variable). Fixes: CID 292459 Signed-off-by: Lidong Chen <lidong.chen@oracle.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
ac1512b872
commit
5eca564b19
3 files changed
+17
-1
No files matched your search
@@ -0,0 +1,14 @@
|
||||
--- a/lib/regexec.c 2020-10-21 14:25:35.310195912 +0000
|
||||
+++ b/lib/regexec.c 2020-10-21 14:32:07.961765604 +0000
|
||||
@@ -828,7 +828,11 @@
|
||||
break;
|
||||
if (__glibc_unlikely (err != REG_NOMATCH))
|
||||
goto free_return;
|
||||
+#ifdef DEBUG
|
||||
+ /* Only used for assertion below when DEBUG is set, otherwise
|
||||
+ it will be over-written when we loop around. */
|
||||
match_last = -1;
|
||||
+#endif
|
||||
}
|
||||
else
|
||||
break; /* We found a match. */
|
||||
Reference in new issue
Block a user