Python API

----------
Bugfix submitted through bf-committers: Ipo.getNBezPoints() could cause
segfault due to incorrect check for end-of-list.
This commit is contained in:
Ken Hughes
2006-12-23 18:16:20 +00:00
parent bef18061ec
commit a4a031e434

View File

@@ -1665,7 +1665,7 @@ static PyObject *Ipo_getNBezPoints( BPy_Ipo * self, PyObject * args )
--num;
}
if( num < 0 && !icu )
if( num < 0 || !icu )
return EXPP_ReturnPyObjError( PyExc_IndexError,
"index out of range" );