aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--noice.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/noice.c b/noice.c
index b50cddf..f62619a 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: