ttsnoop: resolve coverity 176047, 176046, 176044, 176043, 176042 and 176040

This commit is contained in:
Jon Trulson
2018-07-05 13:42:36 -06:00
parent e91f12cc54
commit 16ee3d1be5
3 changed files with 12 additions and 14 deletions

View File

@@ -89,7 +89,7 @@ char * snoopFile = 0;
Boolean unlinkSnoopFile = True;
char * traceFile = 0;
Boolean unlinkTraceFile = True;
const char * traceScript = 0;
std::string traceScript;
int globalTimeout = 20000;
unsigned int globalSaveLines = 5000;
const char * globalVersionString = "1.0";
@@ -667,7 +667,7 @@ main(int argc, char **argv)
std::ostringstream envStr;
envStr << "TT_TRACE_SCRIPT=> ";
envStr << traceFile << ends;
traceScript = envStr.str().c_str();
traceScript = envStr.str();
if (optImmediateTracing) {
turnOnTracing( 0, 0, 0 );
}