fix #1188207 and uniform the error/null/none handling

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7225 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-05-26 20:43:33 +00:00
commit a2f5af9ddd
5 changed files with 11 additions and 17 deletions

View file

@ -43,8 +43,7 @@
if (pysize < 0) {
PyErr_SetString(PyExc_OverflowError,
"multimap size not valid in python");
Py_INCREF(Py_None);
return Py_None;
return NULL;
}
PyObject *obj = PyDict_New();
for (const_iterator i= multimap.begin(); i!= multimap.end(); ++i) {