Browse Source

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
commit
62db8333f7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/statistics.c

+ 1
- 1
daemon/statistics.c View File

@ -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)); struct stats_metric *m = g_slice_alloc0(sizeof(*m));
if (fmt1) { if (fmt1) {
va_start(ap, fmt2);
va_start(ap, fmt2); // coverity[copy_paste_error : FALSE]
m->label = g_strdup_vprintf(fmt1, ap); m->label = g_strdup_vprintf(fmt1, ap);
va_end(ap); va_end(ap);
} }


Loading…
Cancel
Save