From 0c332b9609229eb13724c9ab3671c29be721372c Mon Sep 17 00:00:00 2001 From: Victor Zarubkin Date: Wed, 23 Nov 2016 22:16:53 +0300 Subject: [PATCH] Correct checking for thread_name --- include/easy/reader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/easy/reader.h b/include/easy/reader.h index 097e02b..ceffdaa 100644 --- a/include/easy/reader.h +++ b/include/easy/reader.h @@ -227,7 +227,7 @@ namespace profiler { inline bool got_name() const { - return thread_name.front() != 0; + return !thread_name.empty(); } inline const char* name() const