Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
node: 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 committed Dec 4, 2014
1 parent 4815873 commit e67db01
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 @@ -2062,7 +2062,7 @@ extern "C" void node_module_register(void* m) {
} else {
// Once node::Init was called we can only register dynamic modules.
// See DLOpen.
CHECK_NE(modpending, NULL);
assert(modpending == NULL);
modpending = mp;
}
}
Expand Down

0 comments on commit e67db01

Please sign in to comment.