From ec08824561398fe41033e2970147507a3b6ba741 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Fri, 16 Nov 2012 19:35:33 +0000 Subject: [PATCH] Remove pointless null pointer check - Coverity REVERSE_INULL. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13893 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 5007d76a8..c36eef679 100644 --- a/Source/Swig/typemap.c +++ b/Source/Swig/typemap.c @@ -1330,7 +1330,7 @@ static String *Swig_typemap_lookup_impl(const_String_or_char_ptr tmap_method, No /* Special hook (hack!). Check for the 'ref' feature and add code it contains to any 'newfree' typemap code. * We could choose to put this hook into a number of different typemaps, not necessarily 'newfree'... * Rather confusingly 'newfree' is used to release memory and the 'ref' feature is used to add in memory references - yuck! */ - if (node && Cmp(tmap_method, "newfree") == 0) { + if (Cmp(tmap_method, "newfree") == 0) { String *base = SwigType_base(type); Node *typenode = Swig_symbol_clookup(base, 0); if (typenode)