diff --git a/uc.c b/uc.c index 6bff4e77..82471965 100644 --- a/uc.c +++ b/uc.c @@ -2240,7 +2240,7 @@ uc_err uc_ctl(uc_engine *uc, uc_control_type control, ...) } else { int model = va_arg(args, int); - if (model <= 0 || uc->init_done) { + if (model < 0 || uc->init_done) { err = UC_ERR_ARG; break; }