aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--noice.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/noice.c b/noice.c
index 37cc91d..820b851 100644
--- a/noice.c
+++ b/noice.c
@@ -551,10 +551,8 @@ nochange:
goto nochange;
} else {
dir = xdirname(path);
- tmp = xmalloc(strlen(dir) + 1);
- strlcpy(tmp, dir, strlen(dir) + 1);
free(path);
- path = tmp;
+ path = dir;
free(filter);
filter = xstrdup(ifilter); /* Reset filter */
/* Recall history */