Ensure temporary folder before viewing source

This commit is contained in:
Christian Dywan 2012-08-31 21:56:08 +02:00
parent aa5d387cc7
commit b955713b4e

View file

@ -5673,6 +5673,7 @@ midori_view_save_source (MidoriView* view,
unique_filename = g_strdup_printf ("%s/%uXXXXXX%s", midori_paths_get_tmp_dir (),
g_str_hash (uri), midori_view_fallback_extension (view, extension));
g_free (extension);
katze_mkdir_with_parents (midori_paths_get_tmp_dir (), 0700);
fd = g_mkstemp (unique_filename);
}
else