mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
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)) { ^
This commit is contained in:
parent
b9bf5d5ff2
commit
932d9c1657
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue