diff options
author | Philip Withnall <withnall@endlessm.com> | 2017-08-07 14:06:43 +0100 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-08-08 14:11:06 +0000 |
commit | baa9534fdadbc2103036511a31ac7053ee174f62 (patch) | |
tree | 34c324cab63f589ff511ae6cd65f6a4adc1e0c25 /src/libostree/ostree-repo-finder-avahi.c | |
parent | f35b409077dc7881e6e1a8d59bb709226e0d93c6 (diff) | |
download | ostree-baa9534fdadbc2103036511a31ac7053ee174f62.tar.gz |
lib/repo-finder-avahi: Drop redundant conditional
summary_timestamp is checked for non-NULL-ness above, and the function
bails if it’s NULL.
Fixes Coverity issue #1452616.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1059
Approved by: cgwalters
Diffstat (limited to 'src/libostree/ostree-repo-finder-avahi.c')
-rw-r--r-- | src/libostree/ostree-repo-finder-avahi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libostree/ostree-repo-finder-avahi.c b/src/libostree/ostree-repo-finder-avahi.c index 433914b4..e9e2471a 100644 --- a/src/libostree/ostree-repo-finder-avahi.c +++ b/src/libostree/ostree-repo-finder-avahi.c @@ -830,7 +830,7 @@ ostree_avahi_service_build_repo_finder_result (OstreeAvahiService g_ptr_array_add (results, ostree_repo_finder_result_new (remote, OSTREE_REPO_FINDER (finder), priority, supported_ref_to_checksum, - (summary_timestamp != NULL) ? GUINT64_FROM_BE (g_variant_get_uint64 (summary_timestamp)) : 0)); + GUINT64_FROM_BE (g_variant_get_uint64 (summary_timestamp)))); } } |