summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--elaborate.cxx3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 83e56786..c3ce7926 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-11-26 Frank Ch. Eigler <fche@elastic.org>
+
+ * elaborate.cxx (derived_probe ctor): Don't duplicate condition
+ if it doesn't exist.
+
2007-11-20 Masami Hiramatsu <mhiramat@redhat.com>
PR 4935.
diff --git a/elaborate.cxx b/elaborate.cxx
index d3bbe28d..c277d8d5 100644
--- a/elaborate.cxx
+++ b/elaborate.cxx
@@ -53,7 +53,8 @@ derived_probe::derived_probe (probe *p, probe_point *l):
{
if (p)
{
- this->condition = deep_copy_visitor::deep_copy(p->condition);
+ if (p->condition)
+ this->condition = deep_copy_visitor::deep_copy(p->condition);
this->tok = p->tok;
this->privileged = p->privileged;
this->body = deep_copy_visitor::deep_copy(p->body);