diff options
-rw-r--r-- | tests/ChangeLog | 4 | ||||
-rw-r--r-- | tests/varlocs.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index 44a8f045..15c3ef9f 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,5 +1,9 @@ 2015-09-04 Chih-Hung Hsieh <[email protected]> + * varlocs.c (print_base_type): Initialize enctype. + +2015-09-04 Chih-Hung Hsieh <[email protected]> + * md5-sha1-test.c (md5_expected): Removed. (sha1_expected): Likewise. diff --git a/tests/varlocs.c b/tests/varlocs.c index b5733e7b..c3fba89e 100644 --- a/tests/varlocs.c +++ b/tests/varlocs.c @@ -82,7 +82,7 @@ print_base_type (Dwarf_Die *base) assert (dwarf_tag (base) == DW_TAG_base_type); Dwarf_Attribute encoding; - Dwarf_Word enctype; + Dwarf_Word enctype = 0; if (dwarf_attr (base, DW_AT_encoding, &encoding) == NULL || dwarf_formudata (&encoding, &enctype) != 0) error (EXIT_FAILURE, 0, "base type without encoding"); |