Skip to content

Commit 81d64ab

Browse files
committed
unix/modjni: call_method(): If name doesn't match, cleanup via goto next_method.
1 parent c0a79cc commit 81d64ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

unix/modjni.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ STATIC mp_obj_t call_method(jobject obj, const char *name, jarray methods, bool
332332

333333
int name_len = strlen(name);
334334
if (strncmp(name, meth_name, name_len/*arg_types - meth_name - 1*/) || meth_name[name_len] != '('/*(*/) {
335-
continue;
335+
goto next_method;
336336
}
337337
}
338338
// printf("method[%d]=%p %s\n", i, meth, decl);

0 commit comments

Comments
 (0)