Skip to contentSkip to conversation

9pfsd: fix release build with old gcc

PATCH In review Jan Beulich 2 participants 2 messages Aug 1, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 9pfsd: fix release build with old gcc

Being able to recognize that "par" is reliably initialized on the 1st loop iteration requires not overly old compilers.

Fixes 7809132b1a1d ("tools/xen-9pfsd: add 9pfs response generation support")
tools/9pfsd/io.c +1 -1
@@ -196,7 +196,7 @@ static void fill_buffer_at(void **data,
 static void vfill_buffer_at(void **data, const char *fmt, va_list ap)
 {
     const char *f;
-    const void *par;
+    const void *par = NULL; /* old gcc */
     const char *str_val;
     const struct p9_qid *qid;
     const struct p9_stat *stat;