From 69b32d921f9a2a257c5efb4a1694ff0e8526e0c5 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sun, 18 Nov 2012 00:43:09 +0000 Subject: [PATCH] Remove pointless null check git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13899 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Swig/typemap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Swig/typemap.c b/Source/Swig/typemap.c index c36eef679..2570e8090 100644 --- a/Source/Swig/typemap.c +++ b/Source/Swig/typemap.c @@ -1341,7 +1341,7 @@ static String *Swig_typemap_lookup_impl(const_String_or_char_ptr tmap_method, No pname = Getattr(node, "name"); noscope_pname = Copy(pname); - if (pname && node && Getattr(node, "sym:symtab")) { + if (pname && Getattr(node, "sym:symtab")) { /* Add on a qualified name search for any symbol in the symbol table, for example: * struct Foo { * int *foo(int bar) -> Foo::foo