diff options
Diffstat (limited to 'src/python.cc')
| -rw-r--r-- | src/python.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/python.cc b/src/python.cc index 10bcbdb7..64398e38 100644 --- a/src/python.cc +++ b/src/python.cc @@ -74,6 +74,8 @@ bool python_get_stringlist(const char *name, std::vector<otk::ustring> *value) PyObject *val = PyDict_GetItemString(obdict, const_cast<char*>(name)); if (!(val && PyList_Check(val))) return false; + value->clear(); + for (int i = 0, end = PyList_Size(val); i < end; ++i) { PyObject *str = PyList_GetItem(val, i); if (PyString_Check(str)) |
