mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-31 04:02:57 +03:00
(mcview_continue_search_cmd): get rid of string duplication.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
1fa327c5a1
commit
6adcd57859
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user