From ec3fe90b9f8116cb6d8eec940015cd4eda01df7d Mon Sep 17 00:00:00 2001 From: Ildar Musin Date: Wed, 10 Oct 2018 00:06:44 +0200 Subject: [PATCH] Fixed Context::enable_probe method. (#2006) Fixed Context::enable_probe method so that it does not discard the result of Probe::enable. --- src/cc/usdt/usdt.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cc/usdt/usdt.cc b/src/cc/usdt/usdt.cc index 2010520a9d3a..7408d2f072e6 100644 --- a/src/cc/usdt/usdt.cc +++ b/src/cc/usdt/usdt.cc @@ -311,10 +311,8 @@ bool Context::enable_probe(const std::string &probe_name, } } - if (found_probe != nullptr) { - found_probe->enable(fn_name); - return true; - } + if (found_probe != nullptr) + return found_probe->enable(fn_name); return false; }