aboutsummaryrefslogtreecommitdiff
path: root/common/json.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/json.h')
-rw-r--r--common/json.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/json.h b/common/json.h
index 3b219993e7..a911196d18 100644
--- a/common/json.h
+++ b/common/json.h
@@ -65,7 +65,7 @@ static inline bool isinf(double x) {
// Simple function to check a string 's' has at least 'n' characters
static inline bool simplejson_wcsnlen(const char *s, size_t n) {
- if (s == 0)
+ if (s == nullptr)
return false;
const char *save = s;