We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15f13cd commit 1cf6bf7Copy full SHA for 1cf6bf7
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