]> Sergey Matveev's repositories - nnn.git/commitdiff
No need to strdup()
authorsin <sin@2f30.org>
Tue, 21 Oct 2014 14:17:44 +0000 (15:17 +0100)
committersin <sin@2f30.org>
Tue, 21 Oct 2014 14:17:44 +0000 (15:17 +0100)
noice.c

diff --git a/noice.c b/noice.c
index ba2774aea8f0c85173f0bad860477a2f364c4ed3..ee70d582ebeda790260b0f789fba22eb0e2da531 100644 (file)
--- a/noice.c
+++ b/noice.c
@@ -622,7 +622,7 @@ nochange:
                                goto nochange;
                        } else {
                                free(path);
-                               path = strdup(tmp);
+                               path = tmp;
                                free(filter);
                                filter = strdup(ifilter); /* Reset filter */
                                DPRINTF_S(path);