Skip to content
Commit d3385700 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

sched/env_dup.c: Fix an error in the duplication of the child tasks...

sched/env_dup.c:  Fix an error in the duplication of the child tasks environment in the special case where the parent's environment was created, but then all of the variables were unset.  In that case, there is still an allocation in place but the size of the allocation is zero.  This case was not being handled correctly when a child task attempts to create its environment and inherit the zero-size partent environment.  Noted by Anthony Merlino.
parent 41c271d0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment