From c82b10b8d28e4303e7de5da8362a90bca5713acc Mon Sep 17 00:00:00 2001 From: Egor Shestakov Date: Wed, 8 Apr 2026 15:24:56 +0000 Subject: [PATCH] MINOR: tools: memvprintf(): remove check that always true memvprintf() exits early if the is NULL, so the further NULL check is redundant. No backport needed. --- src/tools.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/tools.c b/src/tools.c index 49398ae3d..12481ce1e 100644 --- a/src/tools.c +++ b/src/tools.c @@ -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; }