+ fix flaws found with code analyzer tool
This commit is contained in:
@@ -39,7 +39,7 @@ bool Py::Vector::accepts (PyObject *obj) const
|
||||
if (obj && Vector_TypeCheck (obj)) {
|
||||
return true;
|
||||
}
|
||||
else if (PyTuple_Check(obj)) {
|
||||
else if (obj && PyTuple_Check(obj)) {
|
||||
return (PyTuple_Size(obj) == 3);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user