fix potential null pointer usage as reported by Coverity Prevent

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10608 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2008-06-29 00:50:27 +00:00
commit b02017c658
3 changed files with 16 additions and 12 deletions

View file

@ -1998,7 +1998,8 @@ public:
if (!(variable_wrapper_flag && i == 0)) {
SwigType *pt = Getattr(p, "type");
String *param_type = NewString("");
last_parm = p;
if (setter_flag)
last_parm = p;
/* Get the C# parameter type */
if ((tm = Getattr(p, "tmap:cstype"))) {