aboutsummaryrefslogtreecommitdiffstats
path: root/lib/reltool/src/reltool_sys_win.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2012-02-16 14:21:19 +0100
committerSiri Hansen <[email protected]>2012-03-19 09:48:54 +0100
commit0bc47607cad0c9ad475a7c0a8e7aa5633d00ceb5 (patch)
tree8fd92d7abf38e6133da1d9312649cf6e67c391a7 /lib/reltool/src/reltool_sys_win.erl
parent6f5e3e16019a3a4f9e9033d185b9c487967ad5fa (diff)
downloadotp-0bc47607cad0c9ad475a7c0a8e7aa5633d00ceb5.tar.gz
otp-0bc47607cad0c9ad475a7c0a8e7aa5633d00ceb5.tar.bz2
otp-0bc47607cad0c9ad475a7c0a8e7aa5633d00ceb5.zip
[reltool] Fix badmatch when starting GUI
OTP-9792 Start of reltool GUI sometimes crashes with a badmatch in reltool_sys_win:do_init/1 because the #sys record fetched with reltool_server:get_sys/1 differs from the #sys record returned from reltool_server:start_link/1. This has been corrected. reltool_server:start_link/1 no longer retuns the #sys record.
Diffstat (limited to 'lib/reltool/src/reltool_sys_win.erl')
-rw-r--r--lib/reltool/src/reltool_sys_win.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reltool/src/reltool_sys_win.erl b/lib/reltool/src/reltool_sys_win.erl
index f29a95af38..c49641d6a3 100644
--- a/lib/reltool/src/reltool_sys_win.erl
+++ b/lib/reltool/src/reltool_sys_win.erl
@@ -135,7 +135,7 @@ init(Options) ->
do_init([{safe_config, Safe}, {parent, Parent} | Options]) ->
case reltool_server:start_link(Options) of
- {ok, ServerPid, C, Sys} ->
+ {ok, ServerPid, C} ->
process_flag(trap_exit, C#common.trap_exit),
wx:new(),
wx:debug(C#common.wx_debug),