# HG changeset patch # User Rik # Date 1400043399 25200 # Node ID 6cd4d0af8547a2a3d6b52e26309fbbc30e27f9ec # Parent 4ca40b289b2c2b3be836f4c7b766dea4cab74dd3 Fix blank line appearing in profiler output (bug #39524). * profiler.cc (profile_data_accumulator::enter::enter): Don't enter functions which don't have a name, such as the readline event hook function. diff -r 4ca40b289b2c -r 6cd4d0af8547 libinterp/corefcn/profiler.cc --- a/libinterp/corefcn/profiler.cc Wed May 14 23:58:23 2014 +0200 +++ b/libinterp/corefcn/profiler.cc Tue May 13 21:56:39 2014 -0700 @@ -36,7 +36,11 @@ const std::string& f) : acc (a) { - if (acc.is_active ()) + // FIXME: Add test for f != "" to prevent a blank line showing up + // in profiler statistics. See bug #39524. The root cause + // is that the function name is not set for the recurring readline + // hook function. + if (acc.is_active () && f != "") { fcn = f; acc.enter_function (fcn);