forked from bartvdbraak/blender
Audaspace: fix incorrect parameter check in python API.
Found by PVS-Studio T48917
This commit is contained in:
parent
8001854083
commit
4cbefde47c
@ -861,7 +861,7 @@ Factory_filter(Factory* self, PyObject *args)
|
||||
py_a_len= py_a ? PySequence_Size(py_a) : 0;
|
||||
py_b_len= PySequence_Size(py_b);
|
||||
|
||||
if(!py_b_len || ((py_a != NULL) && !py_b_len))
|
||||
if(!py_b_len || ((py_a != NULL) && !py_a_len))
|
||||
{
|
||||
PyErr_SetString(PyExc_ValueError, "The sequence has to contain at least one value!");
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user