From baa9534fdadbc2103036511a31ac7053ee174f62 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Mon, 7 Aug 2017 14:06:43 +0100 Subject: [PATCH] lib/repo-finder-avahi: Drop redundant conditional MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Closes: #1059 Approved by: cgwalters --- src/libostree/ostree-repo-finder-avahi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)))); } }