Ensure temporary folder before viewing source
This commit is contained in:
parent
aa5d387cc7
commit
b955713b4e
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue