lib/commit: minor coverity fix
authorJonathan Lebon <jlebon@redhat.com>
Wed, 4 Oct 2017 14:41:15 +0000 (14:41 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 4 Oct 2017 15:50:38 +0000 (15:50 +0000)
commitc511ca0fae0e352d52bb7d1a24b4c1d08c5a8ec9
tree338f7cc324bce8b48d8ef1d0de5ede2c0e4fb6b3
parent351ffdb9778436b193ba9d2fbeebe2358e55004f
lib/commit: minor coverity fix

Appease Coverity by using the same condition for both the ternary check
and the if-condition later on. It should be smart enough to figure out
that `dir_enum == NULL` implies that `dfd_iter != NULL` from the
assertion at the top of the function.

Coverity CID: #1457318

Closes: #1250
Approved by: cgwalters
src/libostree/ostree-repo-commit.c