aboutsummaryrefslogtreecommitdiff
path: root/ftp/gftp/files/patch-lib-protocols.c
blob: e24aab9708d8915ca34f177111aa2d8cbea6e699 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- lib/protocols.c.orig	2008-12-04 21:35:37.000000000 +0100
+++ lib/protocols.c	2008-12-04 21:36:25.000000000 +0100
@@ -457,6 +457,7 @@
           fle->file = tmpfile;
         }
 
+#if GLIB_MAJOR_VERSION > 1
       if (ret >= 0 && fle->file != NULL)
         {
           if (g_utf8_validate (fle->file, -1, NULL))
@@ -472,6 +473,7 @@
                 }
             }
         }
+#endif
 
       if (ret >= 0 && !request->cached && request->cachefd > 0 && 
           request->last_dir_entry != NULL)