File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2071,12 +2071,12 @@ struct node_module* get_builtin_module(const char* name) {
20712071struct node_module * get_linked_module (const char * name) {
20722072 struct node_module * mp;
20732073
2074- for (mp = modlist_linked; mp != NULL ; mp = mp->nm_link ) {
2074+ for (mp = modlist_linked; mp != nullptr ; mp = mp->nm_link ) {
20752075 if (strcmp (mp->nm_modname , name) == 0 )
20762076 break ;
20772077 }
20782078
2079- CHECK (mp == NULL || (mp->nm_flags & NM_F_LINKED) != 0 );
2079+ CHECK (mp == nullptr || (mp->nm_flags & NM_F_LINKED) != 0 );
20802080 return mp;
20812081}
20822082
@@ -2298,7 +2298,7 @@ static void LinkedBinding(const FunctionCallbackInfo<Value>& args) {
22982298 node::Utf8Value module_v (module );
22992299 node_module* mod = get_linked_module (*module_v);
23002300
2301- if (mod == NULL ) {
2301+ if (mod == nullptr ) {
23022302 char errmsg[1024 ];
23032303 snprintf (errmsg,
23042304 sizeof (errmsg),
@@ -2309,12 +2309,12 @@ static void LinkedBinding(const FunctionCallbackInfo<Value>& args) {
23092309
23102310 Local<Object> exports = Object::New (env->isolate ());
23112311
2312- if (mod->nm_context_register_func != NULL ) {
2312+ if (mod->nm_context_register_func != nullptr ) {
23132313 mod->nm_context_register_func (exports,
23142314 module ,
23152315 env->context (),
23162316 mod->nm_priv );
2317- } else if (mod->nm_register_func != NULL ) {
2317+ } else if (mod->nm_register_func != nullptr ) {
23182318 mod->nm_register_func (exports, module , mod->nm_priv );
23192319 } else {
23202320 return env->ThrowError (" Linked module has no declared entry point." );
You can’t perform that action at this time.
0 commit comments