diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-08-26 11:10:21 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-08-26 11:10:21 -0700 |
| commit | 24a64ea0ebf5b1086f137e0e72a7486f82e344c2 (patch) | |
| tree | 71b8391f032bc1ef7e3f90684f7b04fe284330b5 /builtin | |
| parent | 710ef8a9458172646e830a82ba110ab2176cf669 (diff) | |
| parent | ec60bb9fc416e0ded2336e8923c8249c661bfc80 (diff) | |
| download | git-24a64ea0ebf5b1086f137e0e72a7486f82e344c2.tar.xz | |
Merge branch 'kl/test-fixes' into maint-2.46
A flakey test and incorrect calls to strtoX() functions have been
fixed.
* kl/test-fixes:
t6421: fix test to work when repo dir contains d0
set errno=0 before strtoX calls
Diffstat (limited to 'builtin')
| -rw-r--r-- | builtin/get-tar-commit-id.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/get-tar-commit-id.c b/builtin/get-tar-commit-id.c index 66a7389f9f..7195a072ed 100644 --- a/builtin/get-tar-commit-id.c +++ b/builtin/get-tar-commit-id.c @@ -35,6 +35,7 @@ int cmd_get_tar_commit_id(int argc, const char **argv UNUSED, const char *prefix if (header->typeflag[0] != TYPEFLAG_GLOBAL_HEADER) return 1; + errno = 0; len = strtol(content, &end, 10); if (errno == ERANGE || end == content || len < 0) return 1; |
