diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2016-04-12 11:04:19 +0100 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2016-04-13 15:22:42 +0100 |
commit | 758c54957d709bdd82b16fa5ce75040abd27daac (patch) | |
tree | 3c71684795f1c544d75e78f6c11cd2bc5a45dca4 /ld/testsuite/lib | |
parent | 8c4c4aeba6e32e3b7d0a4fbda4494b17883dd9c4 (diff) | |
download | gdb-758c54957d709bdd82b16fa5ce75040abd27daac.zip gdb-758c54957d709bdd82b16fa5ce75040abd27daac.tar.gz gdb-758c54957d709bdd82b16fa5ce75040abd27daac.tar.bz2 |
ld/testsuite: Initialise a variable to prevent tcl errors
In some cases a variable could be left uninitialised and then an attempt
made to read this variable, resulting in a tcl error. This commit
initialises the variable in all cases.
ld/ChangeLog:
* testsuite/lib/ld-lib.exp (run_dump_test): Initialise
check_ld(terminal).
Diffstat (limited to 'ld/testsuite/lib')
-rw-r--r-- | ld/testsuite/lib/ld-lib.exp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp index ce446fd..52b63ee 100644 --- a/ld/testsuite/lib/ld-lib.exp +++ b/ld/testsuite/lib/ld-lib.exp @@ -875,6 +875,7 @@ proc run_dump_test { name {extra_options {}} } { } set check_ld(source) "" + set check_ld(terminal) 0 if { $opts(error) != "" \ || $opts(warning) != "" \ || $opts(error_output) != "" \ |