From 28013c13bef26305f8c5a35c52b246c4a2647d23 Mon Sep 17 00:00:00 2001 From: lazymio Date: Thu, 4 Nov 2021 18:29:42 +0100 Subject: [PATCH] Don't init on page size read --- uc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/uc.c b/uc.c index 25fbc52a..19047a38 100644 --- a/uc.c +++ b/uc.c @@ -1969,8 +1969,6 @@ 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 *); *page_size = uc->target_page_size; } else {