Fixed bfd_close being called on null pointer if bfd_fdopenr returns null

This commit is contained in:
Forrest Voight 2017-11-08 22:08:27 -05:00
parent 45f99ed51a
commit d62c9fefd9

View File

@ -330,7 +330,7 @@ public:
} }
explicit handle(): _val(), _empty(true) {} explicit handle(): _val(), _empty(true) {}
explicit handle(T val): _val(val), _empty(false) {} explicit handle(T val): _val(val), _empty(false) { if(!_val) _empty = true; }
#ifdef BACKWARD_ATLEAST_CXX11 #ifdef BACKWARD_ATLEAST_CXX11
handle(handle&& from): _empty(true) { handle(handle&& from): _empty(true) {