Skip to content

Commit 1571d91

Browse files
committed
Avoid emitting locals duiring keyword typemap lookup
1 parent de75091 commit 1571d91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Source/Swig/typemap.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2107,8 +2107,9 @@ static void replace_embedded_typemap(String *s, ParmList *parm_sublist, Wrapper
21072107
}
21082108
found_colon = Strchr(tmap_method, ':');
21092109
if (found_colon) {
2110+
/* Substitute from a keyword argument to a typemap. Avoid emitting local variables from the attached typemap by passing NULL for the file. */
21102111
String *temp_tmap_method = NewStringWithSize(Char(tmap_method), found_colon - Char(tmap_method));
2111-
Swig_typemap_attach_parms(temp_tmap_method, to_match_parms, f);
2112+
Swig_typemap_attach_parms(temp_tmap_method, to_match_parms, NULL);
21122113
Delete(temp_tmap_method);
21132114
} else {
21142115
Swig_typemap_attach_parms(tmap_method, to_match_parms, f);

0 commit comments

Comments
 (0)