diff options
| author | Chih-Hung Hsieh <[email protected]> | 2015-09-04 12:04:11 -0700 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2015-09-07 23:56:33 +0200 |
| commit | b85f80ab687044ece15d51de8a5e7f63bc1d3fa9 (patch) | |
| tree | 31982719267400e0d296c00e29eac7424c548cba /tests/varlocs.c | |
| parent | 4cb8f6196201a88d20f4a47fafaf0ae4e3cfa7a0 (diff) | |
tests: Init local variable enctype before use in print_base_type varlocs.c.
clang compiler static analysis failed.
Signed-off-by: Chih-Hung Hsieh <[email protected]>
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'tests/varlocs.c')
| -rw-r--r-- | tests/varlocs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |
