diff options
author | Jörg Müller <nexyon@gmail.com> | 2016-07-23 14:35:36 +0300 |
---|---|---|
committer | Jörg Müller <nexyon@gmail.com> | 2016-07-23 14:35:36 +0300 |
commit | 4cbefde47c68aa0306df583b160c2e3103b908a7 (patch) | |
tree | c26b83cfda0f3d467e92cccc82e6c3dcc6bf1c20 /intern/audaspace | |
parent | 8001854083a9921a12dc6c1ebc81f875ccd64fb0 (diff) |
Audaspace: fix incorrect parameter check in python API.
Found by PVS-Studio T48917
Diffstat (limited to 'intern/audaspace')
-rw-r--r-- | intern/audaspace/Python/AUD_PyAPI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/audaspace/Python/AUD_PyAPI.cpp b/intern/audaspace/Python/AUD_PyAPI.cpp index 300fd55e23b..de5c0a2f463 100644 --- a/intern/audaspace/Python/AUD_PyAPI.cpp +++ b/intern/audaspace/Python/AUD_PyAPI.cpp @@ -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; |