From 8e758c715b7939889d97806ff7e48378ed105cc9 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Wed, 13 Nov 2024 16:00:25 +1100 Subject: [PATCH] value: silence a maybe-unitialized warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gstvalue.c:376:8: error: ‘s_val’ may be used uninitialized [-Werror=maybe-uninitialized] Part-of: --- subprojects/gstreamer/gst/gstvalue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gstreamer/gst/gstvalue.c b/subprojects/gstreamer/gst/gstvalue.c index 882cf7196e..cf29a1db3f 100644 --- a/subprojects/gstreamer/gst/gstvalue.c +++ b/subprojects/gstreamer/gst/gstvalue.c @@ -353,7 +353,7 @@ _priv_gst_value_serialize_any_list (const GValue * value, const gchar * begin, GstValueList *vlist = value->data[0].v_pointer; GString *s; GValue *v; - gchar *s_val; + gchar *s_val = NULL; guint alen = vlist->len; /* estimate minimum string length to minimise re-allocs in GString */