diff --git a/shared/process-util.c b/shared/process-util.c index 9b9ed00e..a8a24a65 100644 --- a/shared/process-util.c +++ b/shared/process-util.c @@ -140,6 +140,8 @@ custom_env_get_envp(struct custom_env *env) { char **ep; + assert(!env->finalized); + /* add terminating NULL */ ep = wl_array_add(&env->p, sizeof *ep); assert(ep);