Skip to content

Commit

Permalink
unix/modjni: call_method(): If name doesn't match, cleanup via goto n…
Browse files Browse the repository at this point in the history
…ext_method.
  • Loading branch information
pfalcon committed Sep 26, 2015
1 parent c0a79cc commit 81d64ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unix/modjni.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ STATIC mp_obj_t call_method(jobject obj, const char *name, jarray methods, bool

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

0 comments on commit 81d64ab

Please sign in to comment.