aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core/glib-2.0/files/gdummyfile_weirderror.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/glib-2.0/files/gdummyfile_weirderror.patch')
-rw-r--r--recipes-core/glib-2.0/files/gdummyfile_weirderror.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/recipes-core/glib-2.0/files/gdummyfile_weirderror.patch b/recipes-core/glib-2.0/files/gdummyfile_weirderror.patch
new file mode 100644
index 0000000..68e6152
--- /dev/null
+++ b/recipes-core/glib-2.0/files/gdummyfile_weirderror.patch
@@ -0,0 +1,24 @@
+Index: glib-2.40.0/gio/gdummyfile.c
+===================================================================
+--- glib-2.40.0.orig/gio/gdummyfile.c
++++ glib-2.40.0/gio/gdummyfile.c
+@@ -454,7 +454,8 @@ unescape_string (const gchar *escaped_st
+ result = g_malloc (escaped_string_end - escaped_string + 1);
+
+ out = result;
+- for (in = escaped_string; in < escaped_string_end; in++)
++ in = escaped_string;
++ for (; in < escaped_string_end; in++)
+ {
+ character = *in;
+ if (*in == '%')
+@@ -551,7 +552,8 @@ _g_decode_uri (const char *uri)
+
+ decoded->scheme = g_malloc (p - uri);
+ out = decoded->scheme;
+- for (in = uri; in < p - 1; in++)
++ in = uri;
++ for (; in < p - 1; in++)
+ *out++ = g_ascii_tolower (*in);
+ *out = 0;
+