repo: [scan-build] Initialize a variable

Another GLib error convention issue; but eh, we might as
well be conservative and always initialize variables.
This commit is contained in:
Colin Walters 2019-10-14 14:17:09 +00:00
parent aefa1ca249
commit 9032182e3c
1 changed files with 1 additions and 1 deletions

View File

@ -4197,7 +4197,7 @@ ostree_repo_has_object (OstreeRepo *self,
GCancellable *cancellable,
GError **error)
{
gboolean ret_have_object;
gboolean ret_have_object = FALSE;
if (!_ostree_repo_has_loose_object (self, checksum, objtype, &ret_have_object,
cancellable, error))