[PATCH] ld/testsuite: Initialise a variable to prevent tcl errors
Andrew Burgess
andrew.burgess@embecosm.com
Tue Apr 12 10:48:00 GMT 2016
More information about the Binutils mailing list
Tue Apr 12 10:48:00 GMT 2016
- Previous message (by thread): [PATCH] Add init_dwarf_regnames_s390
- Next message (by thread): [PATCH] ld/testsuite: Initialise a variable to prevent tcl errors
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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).
---
ld/ChangeLog | 5 +++++
ld/testsuite/lib/ld-lib.exp | 1 +
2 files changed, 6 insertions(+)
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) != "" \
--
2.5.1
- Previous message (by thread): [PATCH] Add init_dwarf_regnames_s390
- Next message (by thread): [PATCH] ld/testsuite: Initialise a variable to prevent tcl errors
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list