From 62db8333f7ee18a4d3f2010cb5a92068a78dbf9f Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 13 Feb 2023 09:10:02 -0500 Subject: [PATCH] MT#55283 silence Coverity false positive This is correct usage of va_start Change-Id: Ide6abf7ed3755a7f853327fdf489d17e4a6192aa Warned-by: Coverity --- daemon/statistics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/statistics.c b/daemon/statistics.c index 33a780718..d22161a35 100644 --- a/daemon/statistics.c +++ b/daemon/statistics.c @@ -275,7 +275,7 @@ static void add_header(GQueue *ret, const char *fmt1, const char *fmt2, ...) { struct stats_metric *m = g_slice_alloc0(sizeof(*m)); if (fmt1) { - va_start(ap, fmt2); + va_start(ap, fmt2); // coverity[copy_paste_error : FALSE] m->label = g_strdup_vprintf(fmt1, ap); va_end(ap); }