diff options
author | Luca BRUNO <luca.bruno@coreos.com> | 2022-09-05 09:22:26 +0000 |
---|---|---|
committer | Luca BRUNO <luca.bruno@coreos.com> | 2022-09-05 09:27:38 +0000 |
commit | 273089d9e43baab25d09732c639c22bda087bae9 (patch) | |
tree | ddc89f06fb7d249a48e19008cb913bb5d5248a85 /src/libostree/ostree-bootconfig-parser.c | |
parent | eed9e9f335eeddb6cd648239daa23e99b93f9d41 (diff) | |
download | ostree-273089d9e43baab25d09732c639c22bda087bae9.tar.gz |
lib/bootloader: assert invariants
This tweaks some invariants checks into full assertions, in order
to avoid returning to the caller in case of known invalid states.
Diffstat (limited to 'src/libostree/ostree-bootconfig-parser.c')
-rw-r--r-- | src/libostree/ostree-bootconfig-parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libostree/ostree-bootconfig-parser.c b/src/libostree/ostree-bootconfig-parser.c index e005fab9..08259ebf 100644 --- a/src/libostree/ostree-bootconfig-parser.c +++ b/src/libostree/ostree-bootconfig-parser.c @@ -73,7 +73,7 @@ ostree_bootconfig_parser_parse_at (OstreeBootconfigParser *self, GCancellable *cancellable, GError **error) { - g_return_val_if_fail (!self->parsed, FALSE); + g_assert (!self->parsed); g_autofree char *contents = glnx_file_get_contents_utf8_at (dfd, path, NULL, cancellable, error); if (!contents) |