diff options
Diffstat (limited to 'rc.c')
-rw-r--r-- | rc.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1330,6 +1330,9 @@ init_rc(void) ((tmp_dir = getenv("TMP")) == NULL || *tmp_dir == '\0') && ((tmp_dir = getenv("TEMP")) == NULL || *tmp_dir == '\0')) tmp_dir = "/tmp"; + tmp_dir = mkdtemp(Strnew_m_charp(tmp_dir, "/w3m-XXXXXX", NULL)->ptr); + if (tmp_dir == NULL) + tmp_dir = rc_dir; create_option_search_table(); goto open_rc; } |