]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: copy: avoid new static analyzer warnings
authorPádraig Brady <P@draigBrady.com>
Thu, 28 Jun 2018 03:33:30 +0000 (20:33 -0700)
committerPádraig Brady <P@draigBrady.com>
Sun, 1 Jul 2018 01:57:43 +0000 (18:57 -0700)
commit3246bc08a6bb3a74f0a47fb50201a75d786ba9ae
tree0d400ba4aa053cebe996d9e592518dc423580dd4
parent68cf7ad5adea99e681e778344612f5be9d7dd881
maint: copy: avoid new static analyzer warnings

* src/copy.c (copy_internal): Use the lint protected src_mode,
rather than accessing the src_sb again.  Also unconditionally
populate src_sb when !x->move_mode and in lint mode.
Reported by Kamil Dudka with coverity and clang analyzer.
src/copy.c