summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2026-04-02 00:15:14 -0400
committerJunio C Hamano <gitster@pobox.com>2026-04-01 22:08:53 -0700
commit8a0566b42b133b73423c801a7ab6f356de69f51a (patch)
treec485fef584f7466099be2c01f693474903a6fe0c /contrib/persistent-https
parentc39512600f85aa88f368dc6bd13baeb183ae52ad (diff)
downloadgit-8a0566b42b133b73423c801a7ab6f356de69f51a.tar.gz
git-8a0566b42b133b73423c801a7ab6f356de69f51a.zip
http: drop const to fix strstr() warning
In redact_sensitive_header(), a C23 implementation of libc will complain that strstr() assigns the result from "const char *cookie" to "char *semicolon". Ultimately the memory is writable. We're fed a strbuf, generate a const pointer "sensitive_header" within it using skip_iprefix(), and then assign the result to "cookie". So we can solve this by dropping the const from "cookie" and "sensitive_header". However, this runs afoul of skip_iprefix(), which wants a "const char **" for its out-parameter. We can solve that by teaching skip_iprefix() the same "make sure out is at least as const as in" magic that we recently taught to skip_prefix(). 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