summaryrefslogtreecommitdiff
path: root/contrib/persistent-https/socket.go
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2026-05-18 22:25:01 +0200
committerJunio C Hamano <gitster@pobox.com>2026-05-19 09:52:22 +0900
commitc13d0f7bd4e696d5db3345e00f763df23347b6ad (patch)
treebd125667c41260e3853f715b2c11fe6f1c9c13e3 /contrib/persistent-https/socket.go
parent94f057755b7941b321fd11fec1b2e3ca5313a4e0 (diff)
strbuf: use st_add3() in strbuf_grow()
Simplify the code by calling st_add3() to do overflow checks instead of open-coding it. This changes the error message to include the offending summands, which can be helpful when tracking down the cause. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https/socket.go')
0 files changed, 0 insertions, 0 deletions