mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
MINOR: tools: memvprintf(): remove <out> check that always true
memvprintf() exits early if the <out> is NULL, so the further NULL check is redundant. No backport needed.
This commit is contained in:
parent
76f74d7a55
commit
c82b10b8d2
1 changed files with 2 additions and 4 deletions
|
|
@ -4678,10 +4678,8 @@ char *memvprintf(char **out, const char *format, va_list orig_args)
|
|||
ha_free(&ret);
|
||||
}
|
||||
|
||||
if (out) {
|
||||
free(*out);
|
||||
*out = ret;
|
||||
}
|
||||
free(*out);
|
||||
*out = ret;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue