]> git.ipfire.org Git - thirdparty/grub.git/commit
gnulib/regexec: Resolve unused variable
authorDarren Kenny <darren.kenny@oracle.com>
Wed, 21 Oct 2020 14:41:27 +0000 (14:41 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 2 Mar 2021 14:54:16 +0000 (15:54 +0100)
commita983d36bd9178d377d2072fd4b11c635fdc404b4
treec83e5ca15fd51232d741d45dd264b0e8ade37375
parent6aee4bfd6973c714056fb7b56890b8d524e94ee1
gnulib/regexec: Resolve unused variable

This is a really minor issue where a variable is being assigned to but
not checked before it is overwritten again.

The reason for this issue is that we are not building with DEBUG set and
this in turn means that the assert() that reads the value of the
variable match_last is being processed out.

The solution, move the assignment to match_last in to an ifdef DEBUG too.

Fixes: CID 292459
Signed-off-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
bootstrap.conf
conf/Makefile.extra-dist
grub-core/lib/gnulib-patches/fix-unused-value.patch [new file with mode: 0644]