summaryrefslogtreecommitdiff
path: root/mate-screenshot
diff options
context:
space:
mode:
Diffstat (limited to 'mate-screenshot')
-rw-r--r--mate-screenshot/src/mate-screenshot.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mate-screenshot/src/mate-screenshot.c b/mate-screenshot/src/mate-screenshot.c
index 2c2449c2..43f74399 100644
--- a/mate-screenshot/src/mate-screenshot.c
+++ b/mate-screenshot/src/mate-screenshot.c
@@ -1178,8 +1178,10 @@ load_options (void)
/* Find various dirs */
last_save_dir = g_settings_get_string (settings,
LAST_SAVE_DIRECTORY_KEY);
- if (!last_save_dir || !last_save_dir[0])
+
+ if (*last_save_dir == '\0')
{
+ g_free (last_save_dir);
last_save_dir = get_desktop_dir ();
}
else if (last_save_dir[0] == '~')