We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6551e69 + 0e187d7 commit d5d5295Copy full SHA for d5d5295
run-command.c
@@ -452,7 +452,7 @@ static char **prep_childenv(const char *const *deltaenv)
452
}
453
454
/* Create an array of 'char *' to be used as the childenv */
455
- childenv = xmalloc((env.nr + 1) * sizeof(char *));
+ ALLOC_ARRAY(childenv, env.nr + 1);
456
for (i = 0; i < env.nr; i++)
457
childenv[i] = env.items[i].util;
458
childenv[env.nr] = NULL;
0 commit comments