From a38b9178215ae1e408e4218c26733f904d16bc5a Mon Sep 17 00:00:00 2001 From: Trevor Norris Date: Tue, 9 Dec 2014 05:22:49 +0100 Subject: [PATCH] node.cc: fix bad assert It was my mistake to change an assert check. This changes it back to how the assert was originally done. Fixes: c131c1f "modules: adding load linked modules feature" Signed-off-by: Trevor Norris --- src/node.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.cc b/src/node.cc index 57dd74f..2cf6e1d 100644 --- a/src/node.cc +++ b/src/node.cc @@ -2051,7 +2051,7 @@ extern "C" void node_module_register(void* m) { } else { // Once node::Init was called we can only register dynamic modules. // See DLOpen. - CHECK_EQ(modpending, nullptr); + CHECK_NE(modpending, nullptr); modpending = mp; } } -- 2.7.4