summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-11-26 16:59:35 -0500
committerFrank Ch. Eigler <fche@elastic.org>2008-11-26 16:59:35 -0500
commitc31df222427089e752256c58fceb6f077bdc53ce (patch)
tree42b0fa47e157fdd55eb5ddd98d9ed94539259444
parentc3157bcd428bdf98a548688cca4b13ecc1622463 (diff)
downloadsystemtap-steved-c31df222427089e752256c58fceb6f077bdc53ce.tar.gz
systemtap-steved-c31df222427089e752256c58fceb6f077bdc53ce.tar.xz
systemtap-steved-c31df222427089e752256c58fceb6f077bdc53ce.zip
fix valgrind warning with setting s.verbose too late during initialization
-rw-r--r--main.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.cxx b/main.cxx
index 2646cecd..0cc47804 100644
--- a/main.cxx
+++ b/main.cxx
@@ -746,6 +746,9 @@ main (int argc, char * const argv [])
}
int rc = 0;
+
+ // PASS 0: setting up
+ s.verbose = s.perpass_verbose[0];
// For PR1477, we used to override $PATH and $LC_ALL and other stuff
// here. We seem to use complete pathnames in
@@ -804,7 +807,6 @@ main (int argc, char * const argv [])
// PASS 1a: PARSING USER SCRIPT
- s.verbose = s.perpass_verbose[0];
struct stat user_file_stat;
int user_file_stat_rc = -1;
@@ -1103,6 +1105,7 @@ pass_5:
// if (rc) goto cleanup;
+ // PASS 6: cleaning up
cleanup:
// update the database information