]> git.ipfire.org Git - thirdparty/git.git/commit
reftable/record: adapt `reftable_record_key()` to handle allocation failures
authorPatrick Steinhardt <ps@pks.im>
Thu, 17 Oct 2024 04:54:08 +0000 (06:54 +0200)
committerTaylor Blau <me@ttaylorr.com>
Thu, 17 Oct 2024 20:59:56 +0000 (16:59 -0400)
commit4abc8022ffae64bb24e93153c75bc880991bb2dc
treeba63e3e1e4a25962e13e70a79d610646da4e7120
parente693ccf2c9427dfd5d93db723ac68f49f550ed38
reftable/record: adapt `reftable_record_key()` to handle allocation failures

The `reftable_record_key()` function cannot pass any errors to the
caller as it has a `void` return type. Adapt it and its callers such
that we can handle errors and start handling allocation failures.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
reftable/block.c
reftable/reader.c
reftable/record.c
reftable/record.h
reftable/writer.c