rtsp-stream: fix false compiler warning
authorTim-Philipp Müller <tim@centricular.com>
Wed, 21 Jan 2015 14:57:03 +0000 (14:57 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 21 Jan 2015 14:58:19 +0000 (14:58 +0000)
rtsp-stream.c:3034: error: ‘visited’ may be used uninitialized in this function

gst/rtsp-server/rtsp-stream.c

index d64fed4..9a7a59f 100644 (file)
@@ -2811,7 +2811,7 @@ gst_rtsp_stream_transport_filter (GstRTSPStream * stream,
 {
   GstRTSPStreamPrivate *priv;
   GList *result, *walk, *next;
-  GHashTable *visited;
+  GHashTable *visited = NULL;
   guint cookie;
 
   g_return_val_if_fail (GST_IS_RTSP_STREAM (stream), NULL);