From 65f00ff7114d4699e4b6c9b7c051ba67215e2ecd Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Tue, 29 Oct 2013 09:13:49 +0100 Subject: [PATCH] python: highlighter would produce wrong end of span tag when user methods were not set --- src/python/recoll/pyrecoll.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/recoll/pyrecoll.cpp b/src/python/recoll/pyrecoll.cpp index 398297a3..c11e6f9f 100644 --- a/src/python/recoll/pyrecoll.cpp +++ b/src/python/recoll/pyrecoll.cpp @@ -1127,7 +1127,7 @@ public: if (m_methods) res = PyObject_CallMethod(m_methods, (char *)"endMatch", 0); if (res == 0) - return ""; + return ""; PyObject *res1 = res; if (PyUnicode_Check(res)) res1 = PyUnicode_AsUTF8String(res);