edit/editcmd.c (edit_search_cmd): removed redundant code.

This commit is contained in:
Andrew Borodin 2009-04-22 06:19:20 +04:00
parent 945d2183ac
commit 4e64ee3b8d

View File

@ -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 */