summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-09-29 15:54:37 +0300
committerSebastian Dröge <sebastian@centricular.com>2014-09-29 15:54:37 +0300
commit932d9c1657415d40f3cde459f50b8bcbd7df8336 (patch)
tree253e3fa622d3dcf27b7207f97b9eec3659f09d77
parentb9bf5d5ff22446cf00e0a9916772887095662543 (diff)
uri: Fix compiler warnings with gcc
These are actually not true. gsturi.c: In function '_gst_uri_string_to_table.constprop': gsturi.c:1316:27: error: 'pct_kv_sep' may be used uninitialized in this function [-Werror=maybe-uninitialized] for (next_sep = strcasestr (value, pct_kv_sep); next_sep; ^ gsturi.c:1283:24: error: 'pct_part_sep' may be used uninitialized in this function [-Werror=maybe-uninitialized] next_sep = strcasestr (next_sep + 1, pct_part_sep)) { ^
-rw-r--r--gst/gsturi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/gsturi.c b/gst/gsturi.c
index 1a88b5aab9..b932580161 100644
--- a/gst/gsturi.c
+++ b/gst/gsturi.c
@@ -1258,7 +1258,7 @@ _gst_uri_string_to_table (const gchar * str, const gchar * part_sep,
GHashTable *new_table = NULL;
if (str) {
- gchar *pct_part_sep, *pct_kv_sep;
+ gchar *pct_part_sep = NULL, *pct_kv_sep = NULL;
gchar **split_parts;
new_table = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free);