# HG changeset patch # User Rik # Date 1400043399 25200 # Node ID 0eea9ccbae2221e2fa72c272b38693f2516370a5 # Parent 38925538ec14a421b133e5b2d89e59dbd2842860 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 38925538ec14 -r 0eea9ccbae22 libinterp/corefcn/profiler.cc --- a/libinterp/corefcn/profiler.cc Mon May 12 07:56:41 2014 -0700 +++ 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);