Fixed segfault problem. We should probably release 1.3.19 fairly soon as this

problem was serious.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4631 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-03-26 19:18:32 +00:00
commit e789903b0f

View file

@ -493,9 +493,11 @@ static void merge_extensions(Node *cls, Node *am) {
then it hasn't been renamed. However---the name of the class
itself might have been renamed so we need to do a consistency
check here */
Setattr(n,"sym:name", Getattr(cls,"sym:name"));
if (Getattr(cls,"sym:name")) {
Setattr(n,"sym:name", Getattr(cls,"sym:name"));
}
}
}
}
}
symname = Getattr(n,"sym:name");
@ -1082,6 +1084,7 @@ extend_directive : EXTEND options idcolon LBRACE {
Classprefix = 0;
prev_symtab = 0;
$$ = 0;
}
;