Skip to content

Commit

Permalink
status: Fix build without GPGME
Browse files Browse the repository at this point in the history
If OSTREE_DISABLE_GPGME is not built in set remote to NULL.

The ostree_repo_signature_verify_commit_data path is irrelevant in the
no gpg case anyway. Having this set as NULL ensures an error gets
thrown early.

Signed-off-by: Eric Curtin <[email protected]>
  • Loading branch information
ericcurtin committed Jan 5, 2024
1 parent ac8638f commit 37971a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ostree/ot-admin-builtin-status.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ deployment_print_status (OstreeSysroot *sysroot, OstreeRepo *repo, OstreeDeploym

g_print ("%s", output_buffer->str);
}
#else
g_autofree char *remote = NULL;
#endif /* OSTREE_DISABLE_GPGME */
if (opt_verify)
{
Expand Down

0 comments on commit 37971a9

Please sign in to comment.