[Zope-CVS] CVS: Products/ZCTextIndex - stopper.c:1.1.2.2
Guido van Rossum
guido@python.org
Tue, 14 May 2002 10:02:00 -0400
Update of /cvs-repository/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv22525
Modified Files:
Tag: TextIndexDS9-branch
stopper.c
Log Message:
When the constructor is passed a dict, store it in swr_dict!
=== Products/ZCTextIndex/stopper.c 1.1.2.1 => 1.1.2.2 ===
swr = PyObject_New(StopWordRemover, &StopWordRemover_Type);
if (swr != NULL) {
- if (dict != NULL)
+ if (dict != NULL) {
Py_INCREF(dict);
+ swr->swr_dict = dict;
+ }
else {
swr->swr_dict = PyDict_New();
if (swr->swr_dict == NULL) {