From a0de1960d67af11eaf9eb35127a9a26953723987 Mon Sep 17 00:00:00 2001 From: Martin Bickel Date: Wed, 28 Dec 2016 18:19:17 +0100 Subject: [PATCH] Check for errors when loading segments --- elfio/elfio.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; } //------------------------------------------------------------------------------