From 5a23c64e9b743bf96eb6e57b22b67e8fd4c2b428 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sun, 30 Nov 2003 20:46:41 +0000 Subject: [PATCH] Fix c99-ism Original commit message from CVS: Fix c99-ism --- gst/tags/gstvorbistag.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gst/tags/gstvorbistag.c b/gst/tags/gstvorbistag.c index d2fbfa81c7..6c319755b4 100644 --- a/gst/tags/gstvorbistag.c +++ b/gst/tags/gstvorbistag.c @@ -491,10 +491,13 @@ gst_tag_list_to_vorbiscomment_buffer (const GstTagList *list, const guint8 *id_d *((guint32 *) data) = GUINT32_TO_LE (my_data.count); data += 4; for (i = 0; i < my_data.count; i++) { + guint size; + gchar *cur; + g_assert (l != NULL); - gchar *cur = l->data; + cur = l->data; l = g_list_next (l); - guint size = strlen (cur); + size = strlen (cur); *((guint32 *) data) = GUINT32_TO_LE (size); data += 4; memcpy (data, cur, size);