summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-12-11 19:13:52 +0100
committerraveit65 <[email protected]>2019-12-17 10:48:41 +0100
commitfe73da93aa0a14ee471e7a6af7914197c41d3723 (patch)
tree64644bce58d2572e4cc606893a6ca04adf1935af
parent5ba65e48b245488a755da5adbb66439cc902653c (diff)
downloadmate-terminal-fe73da93aa0a14ee471e7a6af7914197c41d3723.tar.bz2
mate-terminal-fe73da93aa0a14ee471e7a6af7914197c41d3723.tar.xz
Avoid NULL pointer dereference in terminal_screen_child_exited
Fixes #314
-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 b4e7460..5c78417 100644
--- a/src/terminal-screen.c
+++ b/src/terminal-screen.c
@@ -1946,6 +1946,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,