process-util: Assert we don't finalize twice
Make sure that we only try to finalize once. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
committed by
Pekka Paalanen
parent
b685e075cd
commit
3af823b69b
@@ -140,6 +140,8 @@ custom_env_get_envp(struct custom_env *env)
|
|||||||
{
|
{
|
||||||
char **ep;
|
char **ep;
|
||||||
|
|
||||||
|
assert(!env->finalized);
|
||||||
|
|
||||||
/* add terminating NULL */
|
/* add terminating NULL */
|
||||||
ep = wl_array_add(&env->p, sizeof *ep);
|
ep = wl_array_add(&env->p, sizeof *ep);
|
||||||
assert(ep);
|
assert(ep);
|
||||||
|
|||||||
Reference in New Issue
Block a user