diff --git a/elfio/elfio.hpp b/elfio/elfio.hpp index 69160ff..b7a3cf9 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; } //------------------------------------------------------------------------------