mirror of
https://github.com/QuasarApp/backward-cpp.git
synced 2025-05-01 12:29:33 +00:00
Fixed bfd_close being called on null pointer if bfd_fdopenr returns null
This commit is contained in:
parent
45f99ed51a
commit
d62c9fefd9
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user