at 15.09-beta 777 B view raw
1Fix compilation on Mac OS X with gcc 4.8. 2 3diff -ru glib-2.40.0-orig/gio/gdummyfile.c glib-2.40.0/gio/gdummyfile.c 4--- glib-2.40.0-orig/gio/gdummyfile.c 2014-02-03 18:40:41.000000000 +0100 5+++ glib-2.40.0/gio/gdummyfile.c 2014-07-15 10:58:31.000000000 +0200 6@@ -454,7 +454,8 @@ 7 result = g_malloc (escaped_string_end - escaped_string + 1); 8 9 out = result; 10- for (in = escaped_string; in < escaped_string_end; in++) 11+ in = escaped_string; 12+ for (; in < escaped_string_end; in++) 13 { 14 character = *in; 15 if (*in == '%') 16@@ -551,6 +552,7 @@ 17 18 decoded->scheme = g_malloc (p - uri); 19 out = decoded->scheme; 20- for (in = uri; in < p - 1; in++) 21+ in = uri; 22+ for (; in < p - 1; in++) 23 *out++ = g_ascii_tolower (*in); 24 *out = 0;