summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Gianforcaro <b.gianfo@gmail.com>2020-08-16 16:58:36 -0700
committerAndreas Kling <kling@serenityos.org>2020-08-17 09:17:57 +0200
commit768853940203b923f80f6e8ca28957fec2bcb5c7 (patch)
treededa36bb5d34cb6491344c0f757605fd52dbb5d8
parentf7b1591a5c9ad99a01fed263cac253f3988eaeaa (diff)
downloadserenity-768853940203b923f80f6e8ca28957fec2bcb5c7.zip
UserspaceEmulator: Fix conditionally uninitialized locals in virt$select
-rw-r--r--DevTools/UserspaceEmulator/Emulator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/DevTools/UserspaceEmulator/Emulator.cpp b/DevTools/UserspaceEmulator/Emulator.cpp
index 5e5deb8411..7dd1b45691 100644
--- a/DevTools/UserspaceEmulator/Emulator.cpp
+++ b/DevTools/UserspaceEmulator/Emulator.cpp
@@ -633,9 +633,9 @@ int Emulator::virt$select(FlatPtr params_addr)
Syscall::SC_select_params params;
mmu().copy_from_vm(&params, params_addr, sizeof(params));
- fd_set readfds;
- fd_set writefds;
- fd_set exceptfds;
+ fd_set readfds {};
+ fd_set writefds {};
+ fd_set exceptfds {};
struct timespec timeout;
u32 sigmask;