fix seg fault #901022

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6691 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-11-08 07:28:29 +00:00
commit 8bc4ce3ee5

View file

@ -1325,7 +1325,7 @@ SwigType *Swig_symbol_typedef_reduce(SwigType *ty, Symtab *tab) {
}
if (Strcmp(nodeType(n),"cdecl") == 0) {
String *storage = Getattr(n,"storage");
if (Strcmp(storage,"typedef") == 0) {
if (storage && Strcmp(storage,"typedef") == 0) {
SwigType *decl;
SwigType *rt;
SwigType *qt;