diff --git a/tests/unit/test_ctl.c b/tests/unit/test_ctl.c index 8138de8e..8e01eba4 100644 --- a/tests/unit/test_ctl.c +++ b/tests/unit/test_ctl.c @@ -174,7 +174,8 @@ static void test_uc_ctl_change_page_size() } // Copy from test_arm.c but with new API. -static void test_uc_ctl_arm_cpu() { +static void test_uc_ctl_arm_cpu() +{ uc_engine *uc; int r_control, r_msp, r_psp; @@ -214,5 +215,5 @@ TEST_LIST = {{"test_uc_ctl_mode", test_uc_ctl_mode}, {"test_uc_ctl_exits", test_uc_ctl_exits}, {"test_uc_ctl_tb_cache", test_uc_ctl_tb_cache}, {"test_uc_ctl_change_page_size", test_uc_ctl_change_page_size}, - {"test_uc_ctl_arm_cpu", test_uc_ctl_arm_cpu}, + {"test_uc_ctl_arm_cpu", test_uc_ctl_arm_cpu}, {NULL, NULL}}; \ No newline at end of file diff --git a/uc.c b/uc.c index be3f2a86..1325217f 100644 --- a/uc.c +++ b/uc.c @@ -1969,7 +1969,7 @@ uc_err uc_ctl(uc_engine *uc, uc_control_type control, ...) case UC_CTL_UC_PAGE_SIZE: { if (rw == UC_CTL_IO_READ) { - + UC_INIT(uc); uint32_t *page_size = va_arg(args, uint32_t *);