diff --git a/elfio/elfio.hpp b/elfio/elfio.hpp index 69160ff157409c22212ee31f8758840c0b4b1708..b7a3cf99afe8c2cf53264c93ba7eff101f731985 100644 --- a/elfio/elfio.hpp +++ b/elfio/elfio.hpp @@ -142,9 +142,8 @@ class elfio } load_sections( stream ); - load_segments( stream ); - - return true; + bool is_still_good = load_segments( stream ); + return is_still_good; } //------------------------------------------------------------------------------