fix 's r' session restore #1968

This commit is contained in:
k-pop connoisseur 2024-12-13 01:55:57 +01:00
parent 5e5a17f954
commit 395068dac8

View file

@ -4543,7 +4543,7 @@ static bool load_session(const char *sname, char **path, char **lastdir, char **
*lastdir = g_ctx[cfg.curctx].c_last; *lastdir = g_ctx[cfg.curctx].c_last;
*lastname = g_ctx[cfg.curctx].c_name; *lastname = g_ctx[cfg.curctx].c_name;
set_sort_flags('\0'); /* Set correct sort options */ set_sort_flags('\0'); /* Set correct sort options */
xstrsncpy(curssn, sname, NAME_MAX); xstrsncpy(curssn, sname ? sname : "@", NAME_MAX);
status = TRUE; status = TRUE;
END: END: