glib r6633 - trunk/gio
- From: alexl svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r6633 - trunk/gio
- Date: Thu, 6 Mar 2008 10:04:24 +0000 (GMT)
Author: alexl
Date: Thu Mar 6 10:04:24 2008
New Revision: 6633
URL: http://svn.gnome.org/viewvc/glib?rev=6633&view=rev
Log:
2008-03-06 Alexander Larsson <alexl redhat com>
* gfile.c (g_file_query_exists):
Add g_return_val_if_fail check (#520700)
Modified:
trunk/gio/ChangeLog
trunk/gio/gfile.c
Modified: trunk/gio/gfile.c
==============================================================================
--- trunk/gio/gfile.c (original)
+++ trunk/gio/gfile.c Thu Mar 6 10:04:24 2008
@@ -928,7 +928,9 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]