diff options
author | Brian Gianforcaro <b.gianfo@gmail.com> | 2020-08-16 16:58:36 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-17 09:17:57 +0200 |
commit | 768853940203b923f80f6e8ca28957fec2bcb5c7 (patch) | |
tree | deda36bb5d34cb6491344c0f757605fd52dbb5d8 | |
parent | f7b1591a5c9ad99a01fed263cac253f3988eaeaa (diff) | |
download | serenity-768853940203b923f80f6e8ca28957fec2bcb5c7.zip |
UserspaceEmulator: Fix conditionally uninitialized locals in virt$select
-rw-r--r-- | DevTools/UserspaceEmulator/Emulator.cpp | 6 |
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(¶ms, 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; |