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:
parent
a1ff841ca4
commit
704b03f833
|
@ -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 */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue