clang compiler static analysis failed.
Signed-off-by: Chih-Hung Hsieh <chh@google.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
+2015-09-04 Chih-Hung Hsieh <chh@google.com>
+
+ * varlocs.c (print_base_type): Initialize enctype.
+
2015-09-04 Chih-Hung Hsieh <chh@google.com>
* md5-sha1-test.c (md5_expected): Removed.
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");