fix seg fault with undefined templatee
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8662 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
8a156f523a
commit
3c65c5cee3
1 changed files with 1 additions and 1 deletions
|
|
@ -625,9 +625,9 @@ template_locate(String *name, Parm *tparms, Symtab *tscope) {
|
||||||
Node *
|
Node *
|
||||||
Swig_cparse_template_locate(String *name, Parm *tparms, Symtab *tscope) {
|
Swig_cparse_template_locate(String *name, Parm *tparms, Symtab *tscope) {
|
||||||
Node *n = template_locate(name, tparms, tscope); /* this function does what we want for templated classes */
|
Node *n = template_locate(name, tparms, tscope); /* this function does what we want for templated classes */
|
||||||
String *nodeType = Getattr(n,k_nodetype);
|
|
||||||
|
|
||||||
if (n) {
|
if (n) {
|
||||||
|
String *nodeType = Getattr(n,k_nodetype);
|
||||||
int isclass = 0;
|
int isclass = 0;
|
||||||
assert(StringEqual(nodeType,k_template));
|
assert(StringEqual(nodeType,k_template));
|
||||||
isclass = (StringEqual(Getattr(n,k_templatetype),k_class));
|
isclass = (StringEqual(Getattr(n,k_templatetype),k_class));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue