mirror of
https://github.com/transmission/transmission.git
synced 2026-04-18 07:56:33 +01:00
Make conditional expressions explicitly boolean
This commit is contained in:
@@ -47,7 +47,7 @@ int AddData::set(QString const& key)
|
||||
size_t len;
|
||||
void* raw = tr_base64_decode(key.toUtf8().constData(), key.toUtf8().size(), &len);
|
||||
|
||||
if (raw)
|
||||
if (raw != nullptr)
|
||||
{
|
||||
metainfo.append(static_cast<char const*>(raw), int(len));
|
||||
tr_free(raw);
|
||||
|
||||
Reference in New Issue
Block a user