summaryrefslogtreecommitdiff
path: root/src/node_http_parser_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_http_parser_impl.h')
-rw-r--r--src/node_http_parser_impl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_http_parser_impl.h b/src/node_http_parser_impl.h
index 7a955cc1e9..7d5ea34720 100644
--- a/src/node_http_parser_impl.h
+++ b/src/node_http_parser_impl.h
@@ -744,7 +744,7 @@ class Parser : public AsyncWrap, public StreamListener {
Local<String> reason;
if (err == HPE_USER) {
const char* colon = strchr(errno_reason, ':');
- CHECK_NE(colon, nullptr);
+ CHECK_NOT_NULL(colon);
code = OneByteString(env()->isolate(), errno_reason,
colon - errno_reason);
reason = OneByteString(env()->isolate(), colon + 1);