Always return a GFileType enum value (#520715).

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

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


svn path=/trunk/; revision=6799
This commit is contained in:
A. Walton 2008-03-31 19:32:58 +00:00 committed by Andrew Walton
parent a2609fc3f1
commit 5d17169953
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-03-31 A. Walton <awalton@svn.gnome.org>
* gfile.c (g_file_query_file_type):
Always return a GFileType enum value (#520715).
2008-03-31 Alexander Larsson <alexl@redhat.com>
* glocalfileenumerator.c:

View File

@ -966,7 +966,7 @@ g_file_query_file_type (GFile *file,
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)