summaryrefslogtreecommitdiffstatshomepage
path: root/unix/modjni.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-09-26 08:50:37 -0700
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-09-26 08:51:22 -0700
commit81d64ab939ff45e74b0154e4ce2d9c5d2cfe6328 (patch)
tree9dec56f8495e93ed7c8bfbd3351419c6f6297331 /unix/modjni.c
parentc0a79cc919f9a4b9d8ad1c9503284587580071f0 (diff)
downloadmicropython-81d64ab939ff45e74b0154e4ce2d9c5d2cfe6328.tar.gz
micropython-81d64ab939ff45e74b0154e4ce2d9c5d2cfe6328.zip
unix/modjni: call_method(): If name doesn't match, cleanup via goto next_method.
Diffstat (limited to 'unix/modjni.c')
-rw-r--r--unix/modjni.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/modjni.c b/unix/modjni.c
index cd3b6616e4..d5ad55eb5f 100644
--- a/unix/modjni.c
+++ b/unix/modjni.c
@@ -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);