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) { if (!edit) {
g_free (old); g_free (old);
old = NULL;
return; return;
} }
@ -2199,13 +2198,11 @@ void edit_search_cmd (WEdit * edit, int again)
if (tmp && tmp->len){ if (tmp && tmp->len){
old_exp = exp = tmp->str; old_exp = exp = tmp->str;
} }
if (tmp) g_string_free (tmp, FALSE);
g_string_free(tmp,FALSE);
} }
#endif /* HAVE_CHARSET */ #endif /* HAVE_CHARSET */
edit_search_dialog (edit, &exp); edit_search_dialog (edit, &exp);
if (old_exp) g_free (old_exp);
g_free(old_exp);
#ifdef HAVE_CHARSET #ifdef HAVE_CHARSET
if (exp && *exp){ if (exp && *exp){
@ -2214,8 +2211,7 @@ void edit_search_cmd (WEdit * edit, int again)
g_free(exp); g_free(exp);
exp = tmp->str; exp = tmp->str;
} }
if (tmp) g_string_free (tmp, FALSE);
g_string_free(tmp,FALSE);
} }
#endif /* HAVE_CHARSET */ #endif /* HAVE_CHARSET */
edit_push_action (edit, KEY_PRESS + edit->start_display); edit_push_action (edit, KEY_PRESS + edit->start_display);