summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-04-23 10:23:20 -0400
committerFrank Ch. Eigler <fche@elastic.org>2008-04-23 10:23:20 -0400
commitf0e6dc6304d8fea1e5fac151581f5deba0b07833 (patch)
treef966c87c764c4fb85f627a2679d3ca8e715776ad /tapsets.cxx
parent1482d30eb166b566e99fa21f9cd697abb711c30e (diff)
downloadsystemtap-steved-f0e6dc6304d8fea1e5fac151581f5deba0b07833.tar.gz
systemtap-steved-f0e6dc6304d8fea1e5fac151581f5deba0b07833.tar.xz
systemtap-steved-f0e6dc6304d8fea1e5fac151581f5deba0b07833.zip
fix overload-detection uninitialized variable bug
Reported-By: Peter Teoh <htmldeveloper@gmail.com>
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index 764f678e..6e776a58 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -216,6 +216,10 @@ common_probe_entryfn_prologue (translator_output* o, string statestr,
o->newline() << "#ifdef STP_TIMING";
o->newline() << "c->statp = 0;";
o->newline() << "#endif";
+ o->newline() << "#ifdef STP_OVERLOAD";
+ o->newline() << "c->cycles_sum = 0;";
+ o->newline() << "c->cycles_base = 0;";
+ o->newline() << "#endif";
}