aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core/glib-2.0/files/gdummyfile_weirderror.patch
blob: 68e61522b4aae204fc31564ac4ee0ba2801791bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;