(set_display_type): ret rid of string reduplication.

This commit is contained in:
Andrew Borodin 2016-01-31 08:53:07 +03:00
parent 1fea17b052
commit 387f41f9ce

View File

@ -980,13 +980,7 @@ set_display_type (int num, panel_view_mode_t type)
/* Restoring saved path from panels.ini for nonlist panel */
/* when it's first creation (for example view_info) */
if (old_widget == NULL && type != view_listing)
{
char *panel_dir;
panel_dir = _vfs_get_cwd ();
panels[num].last_saved_dir = g_strdup (panel_dir);
g_free (panel_dir);
}
panels[num].last_saved_dir = _vfs_get_cwd ();
switch (type)
{