summaryrefslogtreecommitdiff
path: root/src/node_http2.cc
diff options
context:
space:
mode:
authorZYSzys <17367077526@163.com>2019-02-04 15:38:51 +0800
committerDaniel Bevenius <daniel.bevenius@gmail.com>2019-02-07 07:22:38 +0100
commit93e0c6ae8997e0ded6013078efd0ccc652ca2595 (patch)
tree335126a828eb71730196f0df21998a3eaf0f5328 /src/node_http2.cc
parent2a212549dc0517f1700db90d66ed5cf09e9513b8 (diff)
downloadandroid-node-v8-93e0c6ae8997e0ded6013078efd0ccc652ca2595.tar.gz
android-node-v8-93e0c6ae8997e0ded6013078efd0ccc652ca2595.tar.bz2
android-node-v8-93e0c6ae8997e0ded6013078efd0ccc652ca2595.zip
src: use NULL check macros to check nullptr
PR-URL: https://github.com/nodejs/node/pull/25916 Refs: https://github.com/nodejs/node/pull/20914 Reviewed-By: Masashi Hirano <shisama07@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Diffstat (limited to 'src/node_http2.cc')
-rw-r--r--src/node_http2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_http2.cc b/src/node_http2.cc
index 4e19432efb..1dd1f37c70 100644
--- a/src/node_http2.cc
+++ b/src/node_http2.cc
@@ -530,7 +530,7 @@ class Http2Session::MemoryAllocatorInfo {
static void H2Free(void* ptr, void* user_data) {
if (ptr == nullptr) return; // free(null); happens quite often.
void* result = H2Realloc(ptr, 0, user_data);
- CHECK_EQ(result, nullptr);
+ CHECK_NULL(result);
}
static void* H2Realloc(void* ptr, size_t size, void* user_data) {