diff options
author | Chris Robinson <[email protected]> | 2018-12-08 14:22:20 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-08 14:22:20 -0800 |
commit | c9f5617f06503d951b3ed808cf07fb6362a7f8d1 (patch) | |
tree | 69fa576f29e7394aa76ebf08453c2d06d4bdbb6a /common | |
parent | fc8da0c16b34a964c637c721ff944e8e6a5f3277 (diff) |
Avoid several uses of memset
Diffstat (limited to 'common')
-rw-r--r-- | common/almalloc.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/common/almalloc.cpp b/common/almalloc.cpp index 6dcb6cfc..7e83672b 100644 --- a/common/almalloc.cpp +++ b/common/almalloc.cpp @@ -88,9 +88,7 @@ size_t al_get_page_size(void) noexcept #ifdef _WIN32 if(!psize) { - SYSTEM_INFO sysinfo; - memset(&sysinfo, 0, sizeof(sysinfo)); - + SYSTEM_INFO sysinfo{}; GetSystemInfo(&sysinfo); psize = sysinfo.dwPageSize; } |