(do_find): fix wrong duplication of file name.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2021-03-18 16:39:31 +03:00
parent 4df5bbf9ef
commit 11ed948f02

View File

@ -1857,7 +1857,7 @@ do_find (WPanel * panel, const char *start_dir, ssize_t start_dir_len, const cha
continue;
}
list->list[list->len].fname = mc_g_string_dup (list->list[list->len].fname);
list->list[list->len].fname = g_string_new (p);
list->list[list->len].f.marked = 0;
list->list[list->len].f.link_to_dir = link_to_dir ? 1 : 0;
list->list[list->len].f.stale_link = stale_link ? 1 : 0;