summaryrefslogtreecommitdiffstats
path: root/src/utils/base64.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/base64.cpp')
-rw-r--r--src/utils/base64.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/base64.cpp b/src/utils/base64.cpp
index c0a8753..342c39b 100644
--- a/src/utils/base64.cpp
+++ b/src/utils/base64.cpp
@@ -89,8 +89,8 @@ unsigned char *php_base64_decode(const unsigned char *str, int length, int *ret_
}
result = (unsigned char *)malloc(length + 1);
- if (result == NULL) {
- return NULL;
+ if (result == nullptr) {
+ return nullptr;
}
/* run through the whole string, converting as we go */
@@ -135,7 +135,7 @@ unsigned char *php_base64_decode(const unsigned char *str, int length, int *ret_
case 0:
case 1:
free(result);
- return NULL;
+ return nullptr;
case 2:
k++;
case 3: