From b84afab3fa24c22c5ff457f308e3ab620a02691a Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sun, 8 May 2011 11:01:57 +0200 Subject: [PATCH] gstbuffer: Fix unitialized variables --- gst/gstbuffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/gstbuffer.c b/gst/gstbuffer.c index c3c18aa375..16dddfcd6c 100644 --- a/gst/gstbuffer.c +++ b/gst/gstbuffer.c @@ -1200,8 +1200,8 @@ static GstMemory * _gst_buffer_arr_span (GstMemory ** mem[], gsize len[], guint n, gsize offset, gsize size, gboolean writable) { - GstMemory *span, *parent; - gsize poffset; + GstMemory *span, *parent = NULL; + gsize poffset = 0; if (!writable && _gst_buffer_arr_is_span_fast (mem, len, n, &poffset, &parent)) {