Fix a bunch of minor bugs found by Coverity scanner

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9889 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
John Lenz 2007-08-10 02:55:27 +00:00
commit fb51964d01
16 changed files with 99 additions and 40 deletions

View file

@ -1250,7 +1250,7 @@ String *Swig_typemap_lookup_new(const String_or_char *op, Node *node, const Stri
char *cop = Char(op);
/* special case, we need to check for 'ref' call
and set the default code 'sdef' */
if (Cmp(op, "newfree") == 0) {
if (node && Cmp(op, "newfree") == 0) {
sdef = Swig_ref_call(node, lname);
}