From 5d17169953d6da0ade54a325683c32548de55ec5 Mon Sep 17 00:00:00 2001 From: "A. Walton" Date: Mon, 31 Mar 2008 19:32:58 +0000 Subject: [PATCH] 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 --- gio/ChangeLog | 5 +++++ gio/gfile.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gio/ChangeLog b/gio/ChangeLog index 0ca8d91..5441eee 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 e881554..c908ad6 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) -- 2.7.4