]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: avoid new coverity warnings
authorPádraig Brady <P@draigBrady.com>
Fri, 29 May 2015 14:33:59 +0000 (15:33 +0100)
committerPádraig Brady <P@draigBrady.com>
Fri, 29 May 2015 23:41:09 +0000 (00:41 +0100)
commitb9842a615366b47cbd0739d97f2dd2679dfbb3a8
treec272db54a8a0539db3f6eb6416cf6c422bf8e1f2
parent17621b594a74af2cf77a7120b89add47397dbd11
maint: avoid new coverity warnings

* src/sync.c (sync_arg): Initialise variable to avoid
unitialized access if assert is disabled.
* src/head.c (elide_tail_bytes_file): Support this function
with ---presume-input-pipe and larger files,
which regressed with commit v8.23-47-g2662702.
(elide_tail_lines_file): Likewise.
* src/dd.c (dd_copy): Explicitly don't try to ftruncate()
upon failure to lseek() (the existing check against
st_size was already protecting that).
* src/factor.c (factor_using_squfof): Assert (only when
linting due to performance) to avoid the implication of
divide by zero.
* src/od.c (read_block): Remove dead code.
* src/tac.c (tac_seekable): Likewise.
* src/ls.c (gobble_file): Likewise.
src/dd.c
src/factor.c
src/head.c
src/ls.c
src/od.c
src/sync.c
src/tac.c