summaryrefslogtreecommitdiff
path: root/libgnome-desktop/gnome-desktop-thumbnail.c
diff options
context:
space:
mode:
authorSebastian Keller <sebastian-keller@gmx.de>2014-12-05 00:13:54 +0100
committerBastien Nocera <hadess@hadess.net>2014-12-05 14:40:29 +0100
commitef4734f80d7862426714d3720700cf4526499997 (patch)
treec86b9db611eff54316e0ba3324133c8d8aeb40e0 /libgnome-desktop/gnome-desktop-thumbnail.c
parent6b0bc7090a62b1cf6b15c08661a9901aaac98808 (diff)
downloadgnome-desktop-ef4734f80d7862426714d3720700cf4526499997.tar.gz
thumbnail: Don't fail after successfully creating the cache directory
g_mkdir_with_parents returns 0 on success or if the directory already exists, which caused the code to go into the failure path rather than generating the thumbnail. https://bugzilla.gnome.org/show_bug.cgi?id=684026
Diffstat (limited to 'libgnome-desktop/gnome-desktop-thumbnail.c')
-rw-r--r--libgnome-desktop/gnome-desktop-thumbnail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgnome-desktop/gnome-desktop-thumbnail.c b/libgnome-desktop/gnome-desktop-thumbnail.c
index 0d251d5e..04dc6605 100644
--- a/libgnome-desktop/gnome-desktop-thumbnail.c
+++ b/libgnome-desktop/gnome-desktop-thumbnail.c
@@ -1500,7 +1500,7 @@ save_thumbnail (GdkPixbuf *pixbuf,
dirname = g_path_get_dirname (path);
- if (!g_mkdir_with_parents (dirname, 0700))
+ if (g_mkdir_with_parents (dirname, 0700) != 0)
goto out;
tmp_path = g_strconcat (path, ".XXXXXX", NULL);