summaryrefslogtreecommitdiff
path: root/thunar/thunar-thumbnail-cache.c
diff options
context:
space:
mode:
authorRomain B <skunnyk@alteroot.org>2017-05-01 14:30:22 +0200
committerAndre Miranda <andreldm@xfce.org>2017-08-14 21:11:46 -0300
commit883772868f932e2149d2f7519470a912a3d650da (patch)
treefa22f6ee0f6bcf7653fbb28b0df29f9f00727319 /thunar/thunar-thumbnail-cache.c
parent1e678a5295af3bbff2cff6b454f216e4adb85104 (diff)
downloadthunar-883772868f932e2149d2f7519470a912a3d650da.tar.gz
Fix crashes on operations using dbus calls
- GError needs to be initialized to NULL before being sent to gdbus - Introduced by the dbus-glib -> GDBus migration - Thanks to Eric
Diffstat (limited to 'thunar/thunar-thumbnail-cache.c')
-rw-r--r--thunar/thunar-thumbnail-cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thunar/thunar-thumbnail-cache.c b/thunar/thunar-thumbnail-cache.c
index b5f1526d..26483108 100644
--- a/thunar/thunar-thumbnail-cache.c
+++ b/thunar/thunar-thumbnail-cache.c
@@ -162,7 +162,7 @@ thunar_thumbnail_cache_copy_async_reply (ThunarThumbnailCacheDBus *proxy,
{
GList *li;
ThunarFile *file;
- GError *error;
+ GError *error = NULL;
_thunar_return_if_fail (THUNAR_IS_THUMBNAIL_CACHE_DBUS (proxy));
@@ -196,7 +196,7 @@ thunar_thumbnail_cache_move_async_reply (ThunarThumbnailCacheDBus *proxy,
{
GList *li;
ThunarFile *file;
- GError *error;
+ GError *error = NULL;
_thunar_return_if_fail (THUNAR_IS_THUMBNAIL_CACHE_DBUS (proxy));