uri: Silence a compiler warning
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 3 Apr 2015 23:12:48 +0000 (19:12 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 3 Apr 2015 23:12:48 +0000 (19:12 -0400)
This is a false positive for use initialized. The variable is set and
used enclosed in the safe if condition.

gst/gsturi.c

index 6346ea0..9a04dcb 100644 (file)
@@ -1297,7 +1297,7 @@ _gst_uri_string_to_list (const gchar * str, const gchar * sep, gboolean convert,
 
   if (str) {
     guint pct_sep_len = 0;
-    gchar *pct_sep;
+    gchar *pct_sep = NULL;
     gchar **split_str;
 
     if (convert && !unescape) {