sched/environ: Replace get_environ_ptr with environ
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
9794068a9c
commit
76803f4a07
@ -153,7 +153,7 @@ int exec_module(FAR const struct binary_s *binp,
|
||||
|
||||
/* Make a copy of the environment here */
|
||||
|
||||
if (envp || (envp = get_environ_ptr()))
|
||||
if (envp || (envp = environ))
|
||||
{
|
||||
envp = binfmt_copyenv(envp);
|
||||
if (!envp)
|
||||
|
@ -154,7 +154,7 @@ FAR struct task_tcb_s *nxtask_setup_vfork(start_t retaddr)
|
||||
|
||||
/* Duplicate the parent tasks environment */
|
||||
|
||||
ret = env_dup(child->cmn.group, get_environ_ptr());
|
||||
ret = env_dup(child->cmn.group, environ);
|
||||
if (ret < 0)
|
||||
{
|
||||
goto errout_with_tcb;
|
||||
|
Loading…
Reference in New Issue
Block a user