[evolution-rss] check file exists before validation
- From: Lucian Langa <lucilanga src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-rss] check file exists before validation
- Date: Thu, 19 Aug 2010 05:45:03 +0000 (UTC)
commit df050563096bac5377c97ce1f67260edf28ae4c9
Author: Lucian Langa <lucilanga gnome org>
Date: Sat Aug 14 20:55:56 2010 +0300
check file exists before validation
src/rss-image.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/rss-image.c b/src/rss-image.c
index b64308b..f7ad35b 100644
--- a/src/rss-image.c
+++ b/src/rss-image.c
@@ -485,6 +485,8 @@ file_is_image(gchar *image, gboolean cleanup)
gboolean result = TRUE;
g_return_val_if_fail(image != NULL, FALSE);
+ g_return_val_if_fail(
+ g_file_test(image, G_FILE_TEST_EXISTS) == TRUE, FALSE);
/*need to get mime type via file contents or else mime type is
* bound to be wrong, especially on files fetched from the web
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]