mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Ticket #2663: Segmentation fault while background copying
Action to reproduce bug: Start copy/move file/files (around 100mb+) in background Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
d25ac6a911
commit
bd5c568f8f
@ -319,7 +319,7 @@ do_load_prompt (void)
|
|||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
/* Don't actually change the prompt if it's invisible */
|
/* 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 ();
|
setup_cmdline ();
|
||||||
|
|
||||||
@ -426,11 +426,11 @@ main (int argc, char *argv[])
|
|||||||
|
|
||||||
if (!mc_args_parse (&argc, &argv, "mc", &error))
|
if (!mc_args_parse (&argc, &argv, "mc", &error))
|
||||||
{
|
{
|
||||||
startup_exit_falure:
|
startup_exit_falure:
|
||||||
fprintf (stderr, _("Failed to run:\n%s\n"), error->message);
|
fprintf (stderr, _("Failed to run:\n%s\n"), error->message);
|
||||||
g_error_free (error);
|
g_error_free (error);
|
||||||
g_free (shell);
|
g_free (shell);
|
||||||
startup_exit_ok:
|
startup_exit_ok:
|
||||||
str_uninit_strings ();
|
str_uninit_strings ();
|
||||||
return exit_code;
|
return exit_code;
|
||||||
}
|
}
|
||||||
@ -564,7 +564,7 @@ main (int argc, char *argv[])
|
|||||||
if (mc_global.midnight_shutdown)
|
if (mc_global.midnight_shutdown)
|
||||||
exit_code = EXIT_SUCCESS;
|
exit_code = EXIT_SUCCESS;
|
||||||
else
|
else
|
||||||
exit_code = do_nc () ? EXIT_SUCCESS : EXIT_FAILURE;
|
exit_code = do_nc ()? EXIT_SUCCESS : EXIT_FAILURE;
|
||||||
|
|
||||||
/* Save the tree store */
|
/* Save the tree store */
|
||||||
(void) tree_store_save ();
|
(void) tree_store_save ();
|
||||||
|
Loading…
Reference in New Issue
Block a user