]> git.ipfire.org Git - thirdparty/coreutils.git/commit
uniq: pacify GCC -fanalyzer
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 31 Jul 2021 18:14:43 +0000 (11:14 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 31 Jul 2021 18:17:18 +0000 (11:17 -0700)
commitffbd64ec867875d4f7fdc504dfba640e11cf1c98
tree524446ef7758097a5b15a3f1a4a471bb343fb2a9
parent84da62974d0325481044f49a03984c5e47eaf927
uniq: pacify GCC -fanalyzer

Pacify GCC 11.1 -fanalyzer.
* src/uniq.c (check_file): Use simpler test to check whether this
is the first time through the loop.  Although the old test was
correct, the new one is easier to understand and perhaps a tiny
bit more efficient.
src/uniq.c