Audaspace: fix incorrect parameter check in python API.

Found by PVS-Studio T48917
This commit is contained in:
Joerg Mueller 2016-07-23 13:35:36 +02:00
parent 8001854083
commit 4cbefde47c
1 changed files with 1 additions and 1 deletions

View File

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