]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: avoid static analysis warnings in ln.c
authorPádraig Brady <P@draigBrady.com>
Thu, 10 Apr 2014 16:09:57 +0000 (17:09 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 10 Apr 2014 16:11:25 +0000 (17:11 +0100)
commite9cb3eb6cee714865eff7a29e6c2101e545617c2
treebb3614ddb3b6792eb644d30b9d7834708852dcb2
parentd2980924ac05bbee579bd71e551128f3b02327f1
maint: avoid static analysis warnings in ln.c

* src/ln.c (do_link): It's not obvious that record_file() is a noop
in the symlink case (in that case dest_set is NULL and so ignored).
So to make it obvious, and to avoid false positives seen in coverity,
add the explicit condition here.
src/ln.c