diff --git a/noice.c b/noice.c index b50cddfe..f62619a2 100644 --- a/noice.c +++ b/noice.c @@ -545,10 +545,8 @@ begin: /* Find cur from history */ cur = dentfind(dents, n, path, oldpath); - if (oldpath != NULL) { - free(oldpath); - oldpath = NULL; - } + free(oldpath); + oldpath = NULL; for (;;) { redraw: