From: Arun Prakash Jana Date: Sat, 11 Jun 2022 00:35:57 +0000 (+0530) Subject: Fix segfault when last dir is not set X-Git-Tag: v4.6~49 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=49f21ae0139e54c0c8467ee439269f720f62c9bb;p=nnn.git Fix segfault when last dir is not set --- diff --git a/src/nnn.c b/src/nnn.c index 0a291251..fddcf153 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -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 */