From 51bf59c154c1dd2d4e681d8eb6c916c73af3b476 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Mon, 26 Nov 2007 10:11:18 -0500 Subject: * conditional-probe SEGV fix 2007-11-26 Frank Ch. Eigler * elaborate.cxx (derived_probe ctor): Don't duplicate condition if it doesn't exist. --- elaborate.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'elaborate.cxx') 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); -- cgit