From 41fa3fc4998f4369efdec55714eab4d9ec81b8f7 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 19 Jan 2017 08:37:37 +0100 Subject: [PATCH] souphttpsrc: Initialize return variable In the normal use-case we would end up with ret being unitialized causing havoc. https://bugzilla.gnome.org/show_bug.cgi?id=777222 --- ext/soup/gstsouphttpsrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/soup/gstsouphttpsrc.c b/ext/soup/gstsouphttpsrc.c index b12a727eba..a7b1877a25 100644 --- a/ext/soup/gstsouphttpsrc.c +++ b/ext/soup/gstsouphttpsrc.c @@ -1649,7 +1649,7 @@ static GstFlowReturn gst_soup_http_src_create (GstPushSrc * psrc, GstBuffer ** outbuf) { GstSoupHTTPSrc *src; - GstFlowReturn ret; + GstFlowReturn ret = GST_FLOW_OK; GstEvent *http_headers_event = NULL; src = GST_SOUP_HTTP_SRC (psrc);