Merge pull request #158 from eklitzke/dwarf_file_handle

fix bad pointer comparison in libdwarf backend
This commit is contained in:
François-Xavier Bourlet 2020-02-10 12:40:54 -08:00 committed by GitHub
commit c51737a75c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1995,7 +1995,7 @@ private:
dwarf_file_t file_handle;
file_handle.reset(open(filename_object.c_str(), O_RDONLY));
if (file_handle < 0) {
if (file_handle.get() < 0) {
return r;
}