glib r6799 - trunk/gio



Author: awalton
Date: Mon Mar 31 20:32:58 2008
New Revision: 6799
URL: http://svn.gnome.org/viewvc/glib?rev=6799&view=rev

Log:
2008-03-31  A. Walton  <awalton svn gnome org>

	* gfile.c (g_file_query_file_type):
	Always return a GFileType enum value (#520715).



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

Modified: trunk/gio/gfile.c
==============================================================================
--- trunk/gio/gfile.c	(original)
+++ trunk/gio/gfile.c	Mon Mar 31 20:32:58 2008
@@ -966,7 +966,7 @@
   GFileInfo *info;
   GFileType file_type;
   
-  g_return_val_if_fail (G_IS_FILE(file), FALSE);
+  g_return_val_if_fail (G_IS_FILE(file), G_FILE_TYPE_UNKNOWN);
   info = g_file_query_info (file, G_FILE_ATTRIBUTE_STANDARD_TYPE, flags,
 			    cancellable, NULL);
   if (info != NULL)



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