[Xfce4-commits] [xfce/thunar] 01/01: Do not pass NULL to g_file_test
noreply at xfce.org
noreply at xfce.org
Fri Jun 23 03:42:23 CEST 2017
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/thunar.
commit 1d39355c9296c2bd09768b974b65e5762e97b192
Author: Andre Miranda <andreldm at xfce.org>
Date: Thu Jun 22 22:40:52 2017 -0300
Do not pass NULL to g_file_test
---
thunar/thunar-thumbnailer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/thunar/thunar-thumbnailer.c b/thunar/thunar-thumbnailer.c
index 308e109..52daad9 100644
--- a/thunar/thunar-thumbnailer.c
+++ b/thunar/thunar-thumbnailer.c
@@ -931,7 +931,7 @@ thunar_thumbnailer_queue_files (ThunarThumbnailer *thumbnailer,
thumbnail_path = thunar_file_get_thumbnail_path (lp->data);
/* test if a thumbnail can be found */
- if (g_file_test (thumbnail_path, G_FILE_TEST_EXISTS))
+ if (thumbnail_path != NULL && g_file_test (thumbnail_path, G_FILE_TEST_EXISTS))
thunar_file_set_thumb_state (lp->data, THUNAR_FILE_THUMB_STATE_READY);
else
thunar_file_set_thumb_state (lp->data, THUNAR_FILE_THUMB_STATE_NONE);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list