(DelParmList): Fix bug: Handle NULL input.

Thanks to Matthias Koeppe.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@581 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Thien-Thi Nguyen 2000-07-17 18:29:10 +00:00
commit 3233009c09

View file

@ -141,6 +141,7 @@ CopyParmList(ParmList *l) {
void DelParmList(ParmList *l) { void DelParmList(ParmList *l) {
int i; int i;
if (NULL == l) return;
for (i = 0; i < l->maxparms; i++) { for (i = 0; i < l->maxparms; i++) {
if (l->parms[i]) DelParm(l->parms[i]); if (l->parms[i]) DelParm(l->parms[i]);
} }