sched: fix visual studio Compiler Warning (level 4) C4706

D:\code\incubator-nuttx\sched\environ\env_dup.c(81):
  warning C4706: assignment within conditional expression
  [D:\code\nuttx\incubator-nuttx\vs20221\sched\sched.vcxproj]

Reference:
https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-4-c4706?view=msvc-170

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2022-08-17 13:25:43 +08:00 committed by Xiang Xiao
parent a1ff841ca4
commit 704b03f833
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ int env_dup(FAR struct task_group_s *group, FAR char * const *envcp)
/* Is there an environment ? */ /* Is there an environment ? */
if (envcp || (envcp = ptcb->group->tg_envp)) if (envcp || (envcp = ptcb->group->tg_envp) != NULL)
{ {
/* Count the strings */ /* Count the strings */