MT#55283 silence Coverity false positive

This is correct usage of va_start

Change-Id: Ide6abf7ed3755a7f853327fdf489d17e4a6192aa
Warned-by: Coverity
pull/1623/head
Richard Fuchs 3 years ago
parent 901acb1d00
commit 62db8333f7

@ -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);
}

Loading…
Cancel
Save