diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/base64.cpp | 2 | ||||
-rw-r--r-- | src/utils/copynpaste.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/utils/base64.cpp b/src/utils/base64.cpp index 1ea75322b..843a0b534 100644 --- a/src/utils/base64.cpp +++ b/src/utils/base64.cpp @@ -102,7 +102,7 @@ unsigned char *php3_base64_decode(const unsigned char *string, unsigned char *result = static_cast<unsigned char *>( calloc(length + 1, 1)); - if (result == nullptr) + if (!result) return nullptr; /* run through the whole string, converting as we go */ diff --git a/src/utils/copynpaste.cpp b/src/utils/copynpaste.cpp index 98b98fbe9..3e37afd9d 100644 --- a/src/utils/copynpaste.cpp +++ b/src/utils/copynpaste.cpp @@ -94,7 +94,8 @@ bool retrieveBuffer(std::string& text, std::string::size_type& pos) bool sendBuffer(std::string& text) { - int wCharsLen = MultiByteToWideChar(CP_UTF8, 0, text.c_str(), -1, nullptr, 0); + int wCharsLen = MultiByteToWideChar(CP_UTF8, + 0, text.c_str(), -1, nullptr, 0); if (!wCharsLen) return false; |