diff options
author | Slava Gurevich <sgurevich@gmail.com> | 2022-07-25 15:52:21 -0700 |
---|---|---|
committer | Slava Gurevich <sgurevich@gmail.com> | 2022-07-25 16:40:57 -0700 |
commit | b9aedd94e6796e4b4866ab4c091b736b3db58cb7 (patch) | |
tree | b2164a0b8ddfa92d5277b6addc16579465ab3b70 /lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp | |
parent | c60b897d22b2feab3282c4fc2b390bc87560c7de (diff) | |
download | llvm-b9aedd94e6796e4b4866ab4c091b736b3db58cb7.zip llvm-b9aedd94e6796e4b4866ab4c091b736b3db58cb7.tar.gz llvm-b9aedd94e6796e4b4866ab4c091b736b3db58cb7.tar.bz2 |
[LLDB][NFC][Reliability] Fix uninitialized variables from Coverity scan. Part 2
Improve LLDB reliability by fixing the following "uninitialized variables" static code inspection warnings from
scan.coverity.com:
1476275, 1274012, 1455035, 1364789, 1454282
1467483, 1406152, 1406255, 1454837, 1454416
1467446, 1462022, 1461909, 1420566, 1327228
1367767, 1431254, 1467299, 1312678, 1431780
1454731, 1490403
Differential Revision: https://reviews.llvm.org/D130528
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp index 90118f9..f7f52de 100644 --- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp @@ -234,7 +234,7 @@ NativeProcessLinux::Factory::Launch(ProcessLaunchInfo &launch_info, } // Wait for the child process to trap on its call to execve. - int wstatus; + int wstatus = 0; ::pid_t wpid = llvm::sys::RetryAfterSignal(-1, ::waitpid, pid, &wstatus, 0); assert(wpid == pid); (void)wpid; |