We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a356015 commit 9474c44Copy full SHA for 9474c44
1 file changed
engine/src/em-main.cpp
@@ -91,7 +91,7 @@ platform_main(int argc, char *argv[], char *envp[])
91
/* ---------- Process the environment */
92
/* Count env variables */
93
int t_envc;
94
- for (t_envc = 0; envp[t_envc] != nil; ++t_envc);
+ for (t_envc = 0; envp != nil && envp[t_envc] != nil; ++t_envc);
95
96
/* Import. Note that the envp array is null-terminated */
97
MCStringRef *t_envp;
0 commit comments