summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-12-11 19:13:52 +0100
committerraveit65 <[email protected]>2019-12-17 10:43:10 +0100
commit76341a3d528a2c7bdd73fb1679548cbddacb39b1 (patch)
treee778bbb2be7ed67e579ef36e594f07cf46edb74a /src
parentc49b3f7b68ed674a8745b44e192d58f540ec1032 (diff)
downloadmate-terminal-76341a3d528a2c7bdd73fb1679548cbddacb39b1.tar.bz2
mate-terminal-76341a3d528a2c7bdd73fb1679548cbddacb39b1.tar.xz
Avoid NULL pointer dereference in terminal_screen_child_exited
Fixes #314
Diffstat (limited to 'src')
-rw-r--r--src/terminal-screen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/terminal-screen.c b/src/terminal-screen.c
index aba6cb1..55a01bc 100644
--- a/src/terminal-screen.c
+++ b/src/terminal-screen.c
@@ -1956,6 +1956,9 @@ terminal_screen_child_exited (VteTerminal *terminal, int status)
break;
case TERMINAL_EXIT_HOLD:
{
+ if ((status == 9) && (priv->override_command == NULL))
+ break;
+
GtkWidget *info_bar;
info_bar = terminal_info_bar_new (GTK_MESSAGE_INFO,