Just get rid of an unnecessary variable

Simplify the code by avoiding a superfluous extra variable.
This commit is contained in:
Vadim Zeitlin 2016-04-26 19:54:08 +02:00
commit bf71891197

View file

@ -736,11 +736,9 @@ ready:
{
SwigType *type = Getattr(n, "type");
String *return_type;
String *tm;
if ((tm = Swig_typemap_lookup("ctype", n, "", 0))) {
substituteResolvedType(target, type, tm);
return_type = tm;
if ((return_type = Swig_typemap_lookup("ctype", n, "", 0))) {
substituteResolvedType(target, type, return_type);
}
else {
Swig_warning(WARN_C_TYPEMAP_CTYPE_UNDEF, input_file, line_number, "No ctype typemap defined for %s\n", SwigType_str(type, 0));