(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:
parent
307207ea64
commit
3233009c09
1 changed files with 11 additions and 10 deletions
|
|
@ -141,6 +141,7 @@ CopyParmList(ParmList *l) {
|
|||
|
||||
void DelParmList(ParmList *l) {
|
||||
int i;
|
||||
if (NULL == l) return;
|
||||
for (i = 0; i < l->maxparms; i++) {
|
||||
if (l->parms[i]) DelParm(l->parms[i]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue