summaryrefslogtreecommitdiff
path: root/core/templates
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-28 17:05:34 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-09-28 17:05:34 +0200
commit85fe6ecc32ace7fcf119d9b492e37cd627ae7e4d (patch)
treef6f386733d5ecc86364fffeef7402dc2af0227dd /core/templates
parent14e1f36e614686f3fea0c74fac3624d1027dd5cc (diff)
Fix MSVC warnings C4701 and C4703: Potentially uninitialized variable used
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/paged_array.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/templates/paged_array.h b/core/templates/paged_array.h
index f1ede556e6..2992dd463e 100644
--- a/core/templates/paged_array.h
+++ b/core/templates/paged_array.h
@@ -268,7 +268,7 @@ public:
uint32_t remainder = count & page_size_mask;
T *remainder_page = nullptr;
- uint32_t remainder_page_id;
+ uint32_t remainder_page_id = 0;
if (remainder > 0) {
uint32_t last_page = _get_pages_in_use() - 1;