mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
(do_panelize_cd): minor optimization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
0a784f4d2e
commit
5e81b4be89
@ -423,14 +423,14 @@ do_panelize_cd (struct WPanel *panel)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
vfs_path_t *tmp_vpath;
|
vfs_path_t *tmp_vpath;
|
||||||
const char *tmp_path;
|
const char *fname;
|
||||||
|
|
||||||
tmp_vpath =
|
tmp_vpath =
|
||||||
vfs_path_append_new (panelized_panel.root_vpath, panelized_panel.list.list[i].fname,
|
vfs_path_append_new (panelized_panel.root_vpath, panelized_panel.list.list[i].fname,
|
||||||
NULL);
|
NULL);
|
||||||
tmp_path = vfs_path_as_str (tmp_vpath);
|
fname = vfs_path_as_str (tmp_vpath);
|
||||||
list->list[i].fnamelen = strlen (tmp_path);
|
list->list[i].fnamelen = strlen (fname);
|
||||||
list->list[i].fname = g_strndup (tmp_path, list->list[i].fnamelen);
|
list->list[i].fname = g_strndup (fname, list->list[i].fnamelen);
|
||||||
vfs_path_free (tmp_vpath);
|
vfs_path_free (tmp_vpath);
|
||||||
}
|
}
|
||||||
list->list[i].f.link_to_dir = panelized_panel.list.list[i].f.link_to_dir;
|
list->list[i].f.link_to_dir = panelized_panel.list.list[i].f.link_to_dir;
|
||||||
|
Loading…
Reference in New Issue
Block a user