diff options
author | Sebastian Keller <sebastian-keller@gmx.de> | 2014-12-05 00:13:54 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2014-12-05 14:40:29 +0100 |
commit | ef4734f80d7862426714d3720700cf4526499997 (patch) | |
tree | c86b9db611eff54316e0ba3324133c8d8aeb40e0 /libgnome-desktop/gnome-desktop-thumbnail.c | |
parent | 6b0bc7090a62b1cf6b15c08661a9901aaac98808 (diff) | |
download | gnome-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.c | 2 |
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); |