Merge branch '1996_ViewContinueSearch_segfault'

* 1996_ViewContinueSearch_segfault:
  Ticket #1996: ViewContinueSearch segfault on empty search
This commit is contained in:
Slava Zanko 2010-02-12 13:03:09 +02:00
commit 152299febf
1 changed files with 2 additions and 0 deletions

View File

@ -110,6 +110,7 @@ mcview_continue_search_cmd (mcview_t * view)
if (!view->search) {
/* if not... then ask for an expression */
g_free(view->last_search_string);
view->last_search_string = NULL;
mcview_search (view);
} else {
view->search->search_type = view->search_type;
@ -124,6 +125,7 @@ mcview_continue_search_cmd (mcview_t * view)
} else {
/* if not... then ask for an expression */
g_free(view->last_search_string);
view->last_search_string = NULL;
mcview_search (view);
}
}