(mcview_continue_search_cmd): get rid of string duplication.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2021-05-22 12:00:32 +03:00
parent 1fa327c5a1
commit 6adcd57859

View File

@ -143,7 +143,8 @@ mcview_continue_search_cmd (WView * view)
history = mc_config_history_get (MC_HISTORY_SHARED_SEARCH);
if (history != NULL && history->data != NULL)
{
view->last_search_string = (gchar *) g_strdup (history->data);
view->last_search_string = (gchar *) history->data;
history->data = NULL;
history = g_list_first (history);
g_list_free_full (history, g_free);