Skip to content

Commit

Permalink
commit: Quiet clang-analyzer warning
Browse files Browse the repository at this point in the history
Another conditional ownership.
  • Loading branch information
cgwalters committed Aug 30, 2023
1 parent 5e1b698 commit 4eb3cac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libostree/ostree-repo-commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,8 @@ write_content_object (OstreeRepo *self, const char *expected_checksum, GInputStr
else
size = 0;

(void)file_input_owned; // Conditionally owned

/* Free space check; only applies during transactions */
if ((self->min_free_space_percent > 0 || self->min_free_space_mb > 0) && self->in_transaction)
{
Expand Down

0 comments on commit 4eb3cac

Please sign in to comment.