summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-12-25 16:52:06 +0300
committermonsta <[email protected]>2017-12-25 17:04:08 +0300
commit324758a6b4493942191c898af589c414b629e228 (patch)
tree784e020274d759952826382e7c616d29b2007ab0
parent29f820b54a855602bffca2c3f4373604baeb3c37 (diff)
downloadmate-terminal-324758a6b4493942191c898af589c414b629e228.tar.bz2
mate-terminal-324758a6b4493942191c898af589c414b629e228.tar.xz
fix possible crash when handling DBus method call
fixes https://github.com/mate-desktop/mate-terminal/issues/85
-rw-r--r--src/terminal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/terminal.c b/src/terminal.c
index fd39e13..f8076a8 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -185,10 +185,10 @@ method_call_cb (GDBusConnection *connection,
&error,
NULL);
- options->initial_workspace = initial_workspace;
-
if (options != NULL)
{
+ options->initial_workspace = initial_workspace;
+
terminal_app_handle_options (terminal_app_get (), options, FALSE /* no resume */, &error);
terminal_options_free (options);
}