glib r6451 - trunk/gio



Author: alexl
Date: Tue Feb  5 10:11:12 2008
New Revision: 6451
URL: http://svn.gnome.org/viewvc/glib?rev=6451&view=rev

Log:
2008-02-05  Alexander Larsson  <alexl redhat com>

	* glocalfile.c (g_local_file_move):
	Don't spew warnings when destination is not
	a GLocalFile.



Modified:
   trunk/gio/ChangeLog
   trunk/gio/glocalfile.c

Modified: trunk/gio/glocalfile.c
==============================================================================
--- trunk/gio/glocalfile.c	(original)
+++ trunk/gio/glocalfile.c	Tue Feb  5 10:11:12 2008
@@ -1781,8 +1781,7 @@
 		   gpointer                progress_callback_data,
 		   GError                **error)
 {
-  GLocalFile *local_source;
-  GLocalFile *local_destination = G_LOCAL_FILE (destination);
+  GLocalFile *local_source, *local_destination;
   struct stat statbuf;
   gboolean destination_exist, source_is_dir;
   char *backup_name;
@@ -1798,6 +1797,7 @@
     }
   
   local_source = G_LOCAL_FILE (source);
+  local_destination = G_LOCAL_FILE (destination);
   
   res = g_lstat (local_source->filename, &statbuf);
   if (res == -1)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]