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