From: Alexander Larsson Date: Tue, 5 Feb 2008 10:11:12 +0000 (+0000) Subject: Don't spew warnings when destination is not a GLocalFile. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=c6af0efb11b510806110f422d2aca5ee735d21a8;p=dana%2Fcg-glib.git Don't spew warnings when destination is not a GLocalFile. 2008-02-05 Alexander Larsson * glocalfile.c (g_local_file_move): Don't spew warnings when destination is not a GLocalFile. svn path=/trunk/; revision=6451 --- diff --git a/gio/ChangeLog b/gio/ChangeLog index f5a187f0..34bd5243 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,3 +1,9 @@ +2008-02-05 Alexander Larsson + + * glocalfile.c (g_local_file_move): + Don't spew warnings when destination is not + a GLocalFile. + 2008-02-03 Hans Breuer * makefile.msc : update diff --git a/gio/glocalfile.c b/gio/glocalfile.c index aad6d841..55ed4da8 100644 --- a/gio/glocalfile.c +++ b/gio/glocalfile.c @@ -1781,8 +1781,7 @@ g_local_file_move (GFile *source, 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 @@ g_local_file_move (GFile *source, } local_source = G_LOCAL_FILE (source); + local_destination = G_LOCAL_FILE (destination); res = g_lstat (local_source->filename, &statbuf); if (res == -1)