Skip to content

Commit

Permalink
Merge pull request #3019 from cgwalters/more-analyzer-fixes-4
Browse files Browse the repository at this point in the history
mutable-tree: Quiet clang-analyzer warning
  • Loading branch information
cgwalters committed Aug 29, 2023
2 parents d001729 + db4ca6e commit 5837f27
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libostree/ostree-mutable-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,9 @@ ostree_mutable_tree_fill_empty_from_dirtree (OstreeMutableTree *self, OstreeRepo
if (g_strcmp0 (empty_tree_csum, contents_checksum) == 0)
{
/* Adding an empty tree to a full one - stick with the old contents */
contents_checksum = self->contents_checksum;
break;
g_set_object (&self->repo, repo);
ostree_mutable_tree_set_metadata_checksum (self, metadata_checksum);
return TRUE;
}
else
return FALSE;
Expand Down

0 comments on commit 5837f27

Please sign in to comment.