Fix status checking in abidw

Now that the status is a bit field, one needs to check the OK bit in
the status for successful operation state.  Oops.

	* tools/abidw.cc (main): Fix successful status checking.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2014-11-30 10:40:58 +01:00
parent 6be1218195
commit f091ff1ac2

View File

@ -179,7 +179,7 @@ main(int argc, char* argv[])
abigail::dwarf_reader::status status = abigail::dwarf_reader::status status =
abigail::dwarf_reader::has_alt_debug_info(ctxt, abigail::dwarf_reader::has_alt_debug_info(ctxt,
has_alt_di, alt_di_path); has_alt_di, alt_di_path);
if (status == abigail::dwarf_reader::STATUS_OK) if (status & abigail::dwarf_reader::STATUS_OK)
{ {
if (alt_di_path.empty()) if (alt_di_path.empty())
; ;