We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0887421 commit 3ee7444Copy full SHA for 3ee7444
src/process_wrap.cc
@@ -166,6 +166,7 @@ class ProcessWrap : public HandleWrap {
166
for (int i = 0; i < argc; i++) {
167
node::Utf8Value arg(env->isolate(), js_argv->Get(i));
168
options.args[i] = strdup(*arg);
169
+ CHECK_NE(options.args[i], nullptr);
170
}
171
options.args[argc] = nullptr;
172
@@ -187,6 +188,7 @@ class ProcessWrap : public HandleWrap {
187
188
for (int i = 0; i < envc; i++) {
189
node::Utf8Value pair(env->isolate(), env_opt->Get(i));
190
options.env[i] = strdup(*pair);
191
+ CHECK_NE(options.env[i], nullptr);
192
193
options.env[envc] = nullptr;
194
0 commit comments