aboutsummaryrefslogtreecommitdiffstats
path: root/reftable/stack.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-10-13 22:00:35 -0700
committerJunio C Hamano <gitster@pobox.com>2025-10-13 22:00:35 -0700
commitf50f046794a06cfb97c4ccc879b08788629dd067 (patch)
tree24340fdc7f43cf9c3b9e747a3ed13461e64f9abe /reftable/stack.c
parentMerge branch 'ps/commit-graph-per-object-source' (diff)
parentrefs/reftable: add fsck check for checking the table name (diff)
downloadgit-f50f046794a06cfb97c4ccc879b08788629dd067.tar.gz
git-f50f046794a06cfb97c4ccc879b08788629dd067.zip
Merge branch 'kn/reftable-consistency-checks'
The reftable backend learned to sanity check its on-disk data more carefully. * kn/reftable-consistency-checks: refs/reftable: add fsck check for checking the table name reftable: add code to facilitate consistency checks fsck: order 'fsck_msg_type' alphabetically Documentation/fsck-msgids: remove duplicate msg id reftable: check for trailing newline in 'tables.list' refs: move consistency check msg to generic layer refs: remove unused headers
Diffstat (limited to 'reftable/stack.c')
-rw-r--r--reftable/stack.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/reftable/stack.c b/reftable/stack.c
index f91ce50bcd..65d89820bd 100644
--- a/reftable/stack.c
+++ b/reftable/stack.c
@@ -109,12 +109,7 @@ static int fd_read_lines(int fd, char ***namesp)
}
buf[size] = 0;
- *namesp = parse_names(buf, size);
- if (!*namesp) {
- err = REFTABLE_OUT_OF_MEMORY_ERROR;
- goto done;
- }
-
+ err = parse_names(buf, size, namesp);
done:
reftable_free(buf);
return err;