mirror of
https://github.com/xmrig/xmrig.git
synced 2024-10-30 04:57:39 +00:00
String: distinguish nullptr/empty str
This commit is contained in:
parent
3a01ebe277
commit
f7d6348948
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue