Fix segfault when last dir is not set

This commit is contained in:
Arun Prakash Jana 2022-06-11 06:05:57 +05:30
parent 4baee859f8
commit 49f21ae013
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 1 additions and 1 deletions

View File

@ -7143,7 +7143,7 @@ nochange:
}
if (strcmp(path, newpath) == 0) {
if (bookmark)
if (bookmark || !*lastdir)
break;
dir = lastdir; /* Go to last dir on bookmark key repeat */