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
This commit is contained in:
parent
f35b409077
commit
baa9534fda
|
|
@ -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),
|
g_ptr_array_add (results, ostree_repo_finder_result_new (remote, OSTREE_REPO_FINDER (finder),
|
||||||
priority, supported_ref_to_checksum,
|
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))));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue