pic->envp is nullable
This commit is contained in:
parent
64cdd5f152
commit
95fae80658
|
@ -103,6 +103,10 @@ pic_system_getenvs(pic_state *pic)
|
|||
|
||||
pic_get_args(pic, "");
|
||||
|
||||
if (! pic->envp) {
|
||||
return pic_nil_value();
|
||||
}
|
||||
|
||||
for (envp = pic->envp; *envp; ++envp) {
|
||||
pic_value key, val;
|
||||
int i;
|
||||
|
|
Loading…
Reference in New Issue