Skip to content

Commit

Permalink
Fixed #1274: Weird (wrong) string code in papi.cpp
Browse files Browse the repository at this point in the history
(cherry picked from commit b120ff2)
  • Loading branch information
hkaiser committed Oct 4, 2014
1 parent 2139859 commit 98972b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/papi_counters/util/papi.cpp
Expand Up @@ -198,7 +198,7 @@ namespace hpx { namespace performance_counters { namespace papi { namespace util
for (it = boost::make_generator_iterator(gen); *it != 0; ++it)
{
std::string note;
if ((*it)->note && strlen((*it)->note) > 0)
if (strlen((*it)->note) > 0)
{ // is this actually provided anywhere??
note = "Note:\n";
note += (*it)->note;
Expand Down Expand Up @@ -240,7 +240,7 @@ namespace hpx { namespace performance_counters { namespace papi { namespace util
"%s")+ // optional note
std::string(79, '-')+'\n');
std::string note;
if (info.note && strlen(info.note) > 0)
if (strlen(info.note) > 0)
{
note = "Note:\n";
note += info.note;
Expand Down

0 comments on commit 98972b7

Please sign in to comment.