From: A. Walton Date: Mon, 31 Mar 2008 19:32:58 +0000 (+0000) Subject: Always return a GFileType enum value (#520715). X-Git-Tag: GLIB_2_17_0~108 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d17169953d6da0ade54a325683c32548de55ec5;p=platform%2Fupstream%2Fglib.git Always return a GFileType enum value (#520715). 2008-03-31 A. Walton * gfile.c (g_file_query_file_type): Always return a GFileType enum value (#520715). svn path=/trunk/; revision=6799 --- diff --git a/gio/ChangeLog b/gio/ChangeLog index 0ca8d91ee..5441eee00 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,3 +1,8 @@ +2008-03-31 A. Walton + + * gfile.c (g_file_query_file_type): + Always return a GFileType enum value (#520715). + 2008-03-31 Alexander Larsson * glocalfileenumerator.c: diff --git a/gio/gfile.c b/gio/gfile.c index e8815547b..c908ad6c3 100644 --- a/gio/gfile.c +++ b/gio/gfile.c @@ -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)