Obscure seg fault bug fix

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11733 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2009-11-11 00:22:38 +00:00
commit a0ff0a86d0

View file

@ -1120,6 +1120,7 @@ int SwigType_typedef_using(const_String_or_char_ptr name) {
/* Figure out the scope the using directive refers to */ /* Figure out the scope the using directive refers to */
{ {
prefix = Swig_scopename_prefix(name); prefix = Swig_scopename_prefix(name);
if (prefix) {
s = SwigType_find_scope(current_scope, prefix); s = SwigType_find_scope(current_scope, prefix);
if (s) { if (s) {
Hash *ttab = Getattr(s, "typetab"); Hash *ttab = Getattr(s, "typetab");
@ -1128,6 +1129,7 @@ int SwigType_typedef_using(const_String_or_char_ptr name) {
} }
} }
} }
}
if (tt) { if (tt) {
/* Using directive had its own scope. We need to create a new scope for it */ /* Using directive had its own scope. We need to create a new scope for it */