+ fix flaws found with code analyzer tool

This commit is contained in:
wmayer
2014-05-07 13:09:44 +02:00
parent 94f10f5d95
commit 3b5cdda879
22 changed files with 111 additions and 119 deletions

View File

@@ -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);
}