Skip to content

Commit

Permalink
node.cc: fix bad assert
Browse files Browse the repository at this point in the history
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 <trev.norris@gmail.com>
  • Loading branch information
trevnorris authored and piscisaureus committed Dec 9, 2014
1 parent 58ca48f commit a38b917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit a38b917

Please sign in to comment.