mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
edit/editcmd.c (edit_search_cmd): removed redundant code.
This commit is contained in:
parent
945d2183ac
commit
4e64ee3b8d
@ -2183,7 +2183,6 @@ void edit_search_cmd (WEdit * edit, int again)
|
||||
|
||||
if (!edit) {
|
||||
g_free (old);
|
||||
old = NULL;
|
||||
return;
|
||||
}
|
||||
|
||||
@ -2199,12 +2198,10 @@ void edit_search_cmd (WEdit * edit, int again)
|
||||
if (tmp && tmp->len){
|
||||
old_exp = exp = tmp->str;
|
||||
}
|
||||
if (tmp)
|
||||
g_string_free (tmp, FALSE);
|
||||
}
|
||||
#endif /* HAVE_CHARSET */
|
||||
edit_search_dialog (edit, &exp);
|
||||
if (old_exp)
|
||||
g_free (old_exp);
|
||||
|
||||
#ifdef HAVE_CHARSET
|
||||
@ -2214,7 +2211,6 @@ void edit_search_cmd (WEdit * edit, int again)
|
||||
g_free(exp);
|
||||
exp = tmp->str;
|
||||
}
|
||||
if (tmp)
|
||||
g_string_free (tmp, FALSE);
|
||||
}
|
||||
#endif /* HAVE_CHARSET */
|
||||
|
Loading…
Reference in New Issue
Block a user