Add g_return_val_if_fail check (#520700)
authorAlexander Larsson <alexl@redhat.com>
Thu, 6 Mar 2008 10:04:24 +0000 (10:04 +0000)
committerAlexander Larsson <alexl@src.gnome.org>
Thu, 6 Mar 2008 10:04:24 +0000 (10:04 +0000)
2008-03-06  Alexander Larsson  <alexl@redhat.com>

* gfile.c (g_file_query_exists):
Add g_return_val_if_fail check (#520700)

svn path=/trunk/; revision=6633

gio/ChangeLog
gio/gfile.c

index 461e55bb252ee94d2ec572e08222f3f7a11ac963..8fe4b820339c633b894f60b050d62c0449779179 100644 (file)
@@ -1,3 +1,8 @@
+2008-03-06  Alexander Larsson  <alexl@redhat.com>
+
+       * gfile.c (g_file_query_exists):
+       Add g_return_val_if_fail check (#520700)
+
 2008-03-06  Alexander Larsson  <alexl@redhat.com>
 
         * gdesktopappinfo.c:
index ddc0ce4ff571790eca9b8438de8b13a20316ba34..9a3f034fc2c203950cc62f7d937d1b4af31b5502 100644 (file)
@@ -928,7 +928,9 @@ g_file_query_exists (GFile *file,
                     GCancellable *cancellable)
 {
   GFileInfo *info;
-
+  
+  g_return_val_if_fail (G_IS_FILE(file), FALSE);
+  
   info = g_file_query_info (file, G_FILE_ATTRIBUTE_STANDARD_TYPE,
                            G_FILE_QUERY_INFO_NONE,
                            cancellable, NULL);