all repos — openbox @ 8ad1d0bb99ec03c0a233df74aff986c4d49a762b

openbox fork - make it a bit more like ryudo

clear the stringlist before populating it
Dana Jansens danakj@orodu.net
commit

8ad1d0bb99ec03c0a233df74aff986c4d49a762b

parent

7c32ac2b3f0bfd02a1efea1d67e5ad1c3c5be93f

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M src/python.ccsrc/python.cc

@@ -74,6 +74,8 @@ {

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))