From f7d634894834e7c371fb8471cd04170eadf550b0 Mon Sep 17 00:00:00 2001 From: cohcho Date: Sat, 26 Sep 2020 16:41:15 +0000 Subject: [PATCH] String: distinguish nullptr/empty str --- src/base/tools/String.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/tools/String.cpp b/src/base/tools/String.cpp index f9322274..8187f467 100644 --- a/src/base/tools/String.cpp +++ b/src/base/tools/String.cpp @@ -33,7 +33,7 @@ xmrig::String::String(const char *str) : m_size(str == nullptr ? 0 : strlen(str)) { - if (m_size == 0) { + if (str == nullptr) { return; }