mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Merge branch '2663_background_segfault'
* 2663_background_segfault: Ticket #2663: Segmentation fault while background copying
This commit is contained in:
commit
42f2b04eee
@ -319,7 +319,7 @@ do_load_prompt (void)
|
||||
return ret;
|
||||
|
||||
/* Don't actually change the prompt if it's invisible */
|
||||
if (((Dlg_head *) top_dlg->data == midnight_dlg) && command_prompt)
|
||||
if (top_dlg != NULL && ((Dlg_head *) top_dlg->data == midnight_dlg) && command_prompt)
|
||||
{
|
||||
setup_cmdline ();
|
||||
|
||||
@ -564,7 +564,7 @@ main (int argc, char *argv[])
|
||||
if (mc_global.midnight_shutdown)
|
||||
exit_code = EXIT_SUCCESS;
|
||||
else
|
||||
exit_code = do_nc () ? EXIT_SUCCESS : EXIT_FAILURE;
|
||||
exit_code = do_nc ()? EXIT_SUCCESS : EXIT_FAILURE;
|
||||
|
||||
/* Save the tree store */
|
||||
(void) tree_store_save ();
|
||||
|
Loading…
Reference in New Issue
Block a user