value: silence a maybe-unitialized warning

gstvalue.c:376:8: error: ‘s_val’ may be used uninitialized [-Werror=maybe-uninitialized]

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7875>
This commit is contained in:
Matthew Waters 2024-11-13 16:00:25 +11:00
parent 72edd65710
commit 8e758c715b

View file

@ -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 */