Skip to content

Commit

Permalink
Merge pull request #1969 from doremiyeon/us1968_session_restore_fix
Browse files Browse the repository at this point in the history
fix 's r' session restore #1968
  • Loading branch information
jarun authored Dec 13, 2024
2 parents 5e5a17f + 395068d commit f87104d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nnn.c
Original file line number Diff line number Diff line change
Expand Up @@ -4543,7 +4543,7 @@ static bool load_session(const char *sname, char **path, char **lastdir, char **
*lastdir = g_ctx[cfg.curctx].c_last;
*lastname = g_ctx[cfg.curctx].c_name;
set_sort_flags('\0'); /* Set correct sort options */
xstrsncpy(curssn, sname, NAME_MAX);
xstrsncpy(curssn, sname ? sname : "@", NAME_MAX);
status = TRUE;

END:
Expand Down

0 comments on commit f87104d

Please sign in to comment.