[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndex/Splitter/UnicodeSplitter/src - UnicodeSplitter.c:1.15

Andreas Jung andreas@digicool.com
Thu, 24 Jan 2002 15:01:57 -0500


Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndex/Splitter/UnicodeSplitter/src
In directory cvs.zope.org:/tmp/cvs-serv18323/src

Modified Files:
	UnicodeSplitter.c 
Log Message:
fixed missing refcount problem


=== Zope/lib/python/Products/PluginIndexes/TextIndex/Splitter/UnicodeSplitter/src/UnicodeSplitter.c 1.14 => 1.15 ===
     PyObject *value;
 
-    if (PyUnicode_GetSize(word)==1 && ! self->allow_single_chars)
+    if (PyUnicode_GetSize(word)==1 && ! self->allow_single_chars) {
+        Py_INCREF(Py_None);
         return Py_None;
+    }
 
     if (self->synstop) {
         value = PyDict_GetItem(self->synstop,word);