diff options
author | Gaël Bonithon <gael@xfce.org> | 2021-12-23 09:57:38 +0100 |
---|---|---|
committer | Gaël Bonithon <gael@xfce.org> | 2021-12-23 11:43:18 +0100 |
commit | 6282d5629e73129e3c92aca6789053061bdf0c79 (patch) | |
tree | 1d86d9560ad37ef9411f4000827b7bd95e00531c /plugins | |
parent | 77f7ee91c152851e7e244d12d6adb992963270f7 (diff) | |
download | tumbler-6282d5629e73129e3c92aca6789053061bdf0c79.tar.gz |
xdg-cache: Add missing sanity check
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/xdg-cache/xdg-cache-thumbnail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/xdg-cache/xdg-cache-thumbnail.c b/plugins/xdg-cache/xdg-cache-thumbnail.c index f13990a..7b22f33 100644 --- a/plugins/xdg-cache/xdg-cache-thumbnail.c +++ b/plugins/xdg-cache/xdg-cache-thumbnail.c @@ -276,7 +276,7 @@ has_valid_shared_thumbnail (const gchar *uri, thumbnail_path = xfce_create_shared_thumbnail_path (uri, size); - if (g_file_test (thumbnail_path, G_FILE_TEST_EXISTS)) + if (thumbnail_path != NULL && g_file_test (thumbnail_path, G_FILE_TEST_EXISTS)) { gdouble thumb_mtime; gchar *thumb_uri; |