mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
Missing va_end also added in hiredis copy of sds.c.
This commit is contained in:
parent
26744da0d1
commit
293348d0de
1
deps/hiredis/sds.c
vendored
1
deps/hiredis/sds.c
vendored
@ -390,6 +390,7 @@ sds sdscatvprintf(sds s, const char *fmt, va_list ap) {
|
|||||||
buf[buflen-2] = '\0';
|
buf[buflen-2] = '\0';
|
||||||
va_copy(cpy,ap);
|
va_copy(cpy,ap);
|
||||||
vsnprintf(buf, buflen, fmt, cpy);
|
vsnprintf(buf, buflen, fmt, cpy);
|
||||||
|
va_end(ap);
|
||||||
if (buf[buflen-2] != '\0') {
|
if (buf[buflen-2] != '\0') {
|
||||||
if (buf != staticbuf) zfree(buf);
|
if (buf != staticbuf) zfree(buf);
|
||||||
buflen *= 2;
|
buflen *= 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user