mirror of
http://github.com/valkey-io/valkey
synced 2024-11-23 03:33:28 +00: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';
|
||||
va_copy(cpy,ap);
|
||||
vsnprintf(buf, buflen, fmt, cpy);
|
||||
va_end(ap);
|
||||
if (buf[buflen-2] != '\0') {
|
||||
if (buf != staticbuf) zfree(buf);
|
||||
buflen *= 2;
|
||||
|
Loading…
Reference in New Issue
Block a user