summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2026-04-02 00:14:56 -0400
committerJunio C Hamano <gitster@pobox.com>2026-04-01 22:08:50 -0700
commiteedc7ecc66aefa085aae9bf51b56aa11eeb23950 (patch)
treeb6cb48ac3c0065d0fb3c959300992949b925353a /contrib/persistent-https
parent2fb6a18782ff8f2d97b44c8812f9027f3812f970 (diff)
downloadgit-eedc7ecc66aefa085aae9bf51b56aa11eeb23950.tar.gz
git-eedc7ecc66aefa085aae9bf51b56aa11eeb23950.zip
transport-helper: drop const to fix strchr() warnings
We implicitly drop the const from our "key" variable when we do: char *p = strchr(key, ' '); which causes compilation with some C23 versions of libc (notably recent glibc) to complain. We need "p" to remain writable, since we assign NUL over the space we found. We can solve this by also making "key" writable. This works because it comes from a strbuf, which is itself a writable string. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions