diff --git a/sched/environ/env_dup.c b/sched/environ/env_dup.c index 87e9274c77..f1b351ef4c 100644 --- a/sched/environ/env_dup.c +++ b/sched/environ/env_dup.c @@ -78,7 +78,7 @@ int env_dup(FAR struct task_group_s *group, FAR char * const *envcp) /* Is there an environment ? */ - if (envcp || (envcp = (FAR char * const *)ptcb->group->tg_envp)) + if (envcp || (envcp = ptcb->group->tg_envp)) { /* Count the strings */