diff options
Diffstat (limited to 'languages/ruby/debugger/stty.cpp')
-rw-r--r-- | languages/ruby/debugger/stty.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/languages/ruby/debugger/stty.cpp b/languages/ruby/debugger/stty.cpp index 4316da50..bfdb5bd3 100644 --- a/languages/ruby/debugger/stty.cpp +++ b/languages/ruby/debugger/stty.cpp @@ -309,7 +309,6 @@ bool STTY::findExternalTTY(const TQString &termApp) "exec<&-;exec>&-;" // close stdin and stdout "while :;do sleep 3600;done"); const char* scriptStr = script.latin1(); - const char* end = 0; if ( termApp == "konsole" ) { @@ -317,14 +316,14 @@ bool STTY::findExternalTTY(const TQString &termApp) "-caption", i18n("kdevelop: Debug application console").local8Bit().data(), "-e", "sh", "-c", scriptStr, - end); + NULL); } else { ::execlp( prog, prog, "-e", "sh", "-c", scriptStr, - end); + NULL); } // Should not get here, as above should always work |