[lldb] Host::ShellExpandArguments - fix error check for valid dictionary
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 25 Oct 2022 16:43:47 +0000 (17:43 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 25 Oct 2022 16:44:04 +0000 (17:44 +0100)
commit93a5a03030ab9f49120f7bd2ec8e84f063da9987
treee8fda51568a0b671da19e6b8bb547121061de139
parent6fcaaf89fe83ebc821df0e5e774fd8a7f4b1dba3
[lldb] Host::ShellExpandArguments - fix error check for valid dictionary

Fix repeated check for a valid JSON parse and actually check the dictionary pointer

Reported here: https://pvs-studio.com/en/blog/posts/cpp/1003/ (N40)
lldb/source/Host/windows/Host.cpp