summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--staptree.cxx6
2 files changed, 4 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index c3ce7926..cde76f43 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
* elaborate.cxx (derived_probe ctor): Don't duplicate condition
if it doesn't exist.
+ * staptree.cxx (probe_point, probe ctors): Initialize to 0.
2007-11-20 Masami Hiramatsu <mhiramat@redhat.com>
diff --git a/staptree.cxx b/staptree.cxx
index 42fc8c24..d0b4a0ed 100644
--- a/staptree.cxx
+++ b/staptree.cxx
@@ -76,19 +76,19 @@ symboldecl::~symboldecl ()
probe_point::probe_point (std::vector<component*> const & comps,
const token * t):
components(comps), tok(t), optional (false), sufficient (false),
- condition (NULL)
+ condition (0)
{
}
probe_point::probe_point ():
- tok (0), optional (false), sufficient (false), condition (NULL)
+ tok (0), optional (false), sufficient (false), condition (0)
{
}
unsigned probe::last_probeidx = 0;
probe::probe ():
- body (0), tok (0)
+ body (0), tok (0), condition (0)
{
this->name = string ("probe_") + lex_cast<string>(last_probeidx ++);
}