mirror of https://github.com/MidnightCommander/mc
Merge branch '1996_ViewContinueSearch_segfault'
* 1996_ViewContinueSearch_segfault: Ticket #1996: ViewContinueSearch segfault on empty search
This commit is contained in:
commit
152299febf
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue