Fixed an error where a random string would get executed after a recent fix that checked if the window column size was zero was added on the lldb driver startup.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@113179 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/driver/Driver.cpp b/tools/driver/Driver.cpp
index 3dcb9e4..bebb6f8 100644
--- a/tools/driver/Driver.cpp
+++ b/tools/driver/Driver.cpp
@@ -1088,8 +1088,10 @@
char buffer[25];
if (window_size.ws_col > 0)
+ {
sprintf (buffer, "settings set term-width %d", window_size.ws_col);
- m_debugger.HandleCommand ((const char *) buffer);
+ m_debugger.HandleCommand ((const char *) buffer);
+ }
}
// Since input can be redirected by the debugger, we must insert our editline