Commit 1c627c9e authored by Axel Huebl's avatar Axel Huebl Committed by Wenzel Jakob
Browse files

pybind11_getbuffer: useless safe nullptr check (#1664)

Alternative implementation for #1657: if
we know that `obj` is never a `nullptr` [1], we should
not `nullptr`-check it *after* already dereferencing it.

[1] https://github.com/pybind/pybind11/pull/1657#issuecomment-452090058
parent f93cd0aa
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment