Skip to content
Snippets Groups Projects
Commit 81d64ab9 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

unix/modjni: call_method(): If name doesn't match, cleanup via goto next_method.

parent c0a79cc9
No related branches found
No related tags found
No related merge requests found
...@@ -332,7 +332,7 @@ STATIC mp_obj_t call_method(jobject obj, const char *name, jarray methods, bool ...@@ -332,7 +332,7 @@ STATIC mp_obj_t call_method(jobject obj, const char *name, jarray methods, bool
int name_len = strlen(name); int name_len = strlen(name);
if (strncmp(name, meth_name, name_len/*arg_types - meth_name - 1*/) || meth_name[name_len] != '('/*(*/) { 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); // printf("method[%d]=%p %s\n", i, meth, decl);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment