]> git.ipfire.org Git - thirdparty/grub.git/commit
commands/file: Change the confusing loop stop condition.
authorVladimir Serbinenko <phcoder@gmail.com>
Sat, 24 Jan 2015 19:45:25 +0000 (20:45 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Sat, 24 Jan 2015 19:47:41 +0000 (20:47 +0100)
commitb04c6d32ce816c5d8943c767bb4cc7e56aa3c1c5
tree8700cee0c65af85435b80014b49d946661fb94c3
parente902163e484523698f1cc4f06b64830f30909153
commands/file: Change the confusing loop stop condition.

Old condition was used to zero-out header variable on exit of the loop.
This is correct but confusing. Replace with in-loop logic.

Found by: Coverity Scan.
grub-core/commands/file.c