summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2026-04-02 00:15:01 -0400
committerJunio C Hamano <gitster@pobox.com>2026-04-01 22:08:51 -0700
commit21c57efc77ccdef2d6186874024593ded59ecc65 (patch)
tree32d85a6407bd1d0a090c01236d54bcc8a879e411 /contrib/persistent-https
parent031d29d6fbf12284d391c23f04d15970c3bac11c (diff)
downloadgit-21c57efc77ccdef2d6186874024593ded59ecc65.tar.gz
git-21c57efc77ccdef2d6186874024593ded59ecc65.zip
run-command: explicitly cast away constness when assigning to void
We do this: char *equals = strchr(*e, '='); which implicitly removes the constness from "*e" and cause the compiler to complain. We never write to "equals", but later assign it to a string_list util field, which is defined as non-const "void *". We have to cast somewhere, but doing so at the assignment to util is the least-bad place, since that is the source of the confusion. Sadly we are still open to accidentally writing to the string via the util pointer, but that is the cost of using void pointers, which lose all type information. 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