sched/environ: Replace get_environ_ptr with environ

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-04-21 19:22:10 +08:00 committed by Petro Karashchenko
parent 9794068a9c
commit 76803f4a07
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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;