]> gitweb.michael.orlitzky.com - apply-default-acl.git/commit
src/libadacl.c: fix a clang-tidy warning by adding a redundant check.
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 11 Dec 2018 21:13:31 +0000 (16:13 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 11 Dec 2018 21:20:23 +0000 (16:20 -0500)
commitc16c09587fb3c8de6f9cab77e3c855dd0a81938d
tree9242d647267656d7d192cfb5fa57d19f9620c0ca
parent94a6d5e4af8ca45916d1f576b51eb7fd688d00be
src/libadacl.c: fix a clang-tidy warning by adding a redundant check.

The clang-tidy program is complaining about a potential null pointer
dereference where none is possible. To convince it of that fact, I've
added a redundant equality check: we have a case where (a == b) and (a
== c), and I've added (b == c) explicitly. This fixes the warning, and
should have very little performance impact, so everyone is happy.
src/libadacl.c