Add g_return_val_if_fail check (#520700)

2008-03-06  Alexander Larsson  <alexl@redhat.com>

	* gfile.c (g_file_query_exists):
	Add g_return_val_if_fail check (#520700)


svn path=/trunk/; revision=6633
This commit is contained in:
Alexander Larsson 2008-03-06 10:04:24 +00:00 committed by Alexander Larsson
parent 5241d96b21
commit 79ad411eb5
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-03-06 Alexander Larsson <alexl@redhat.com>
* gfile.c (g_file_query_exists):
Add g_return_val_if_fail check (#520700)
2008-03-06 Alexander Larsson <alexl@redhat.com>
* gdesktopappinfo.c:

View File

@ -928,7 +928,9 @@ g_file_query_exists (GFile *file,
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);