commit | a892d3034434e32d110a72daf1dae969af498f5d | [log] [tgz] |
---|---|---|
author | Aaron Smith <aaron.smith@microsoft.com> | Wed Apr 17 03:13:06 2019 +0000 |
committer | Aaron Smith <aaron.smith@microsoft.com> | Wed Apr 17 03:13:06 2019 +0000 |
tree | d6f9d8f5bf2acfa274f9599ccaa0b43a18a673f4 | |
parent | 0068a35663bf0ebc3ed6de803a38335394052566 [diff] |
Clear the output string passed to GetHostName() LLVM's wchar to UTF8 conversion routine expects an empty string to store the output. GetHostName() on Windows is sometimes called with a non-empty string which triggers an assert. The simple fix is to clear the output string before the conversion. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@358550 91177308-0d34-0410-b5e6-96231b3b80d8