You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/06/22 08:18:16 UTC

[GitHub] [incubator-nuttx] juniskane opened a new pull request #3962: sched/task/task_spawn.c: initialize variables explicitly

juniskane opened a new pull request #3962:
URL: https://github.com/apache/incubator-nuttx/pull/3962


   ## Summary
   
   'pid' cannot really be used uninitialized, but Clang analyzer does not
   see it.  Add initializer to silence it and also make debugging slightly
   easier.
   
   Explicitly set pid's address to NULL to fix this complaint:
   
     "Address of stack memory associated with local variable 'pid' is still
      referred to by the global variable 'g_spawn_parms' upon returning to
      the caller."
   
   ## Impact
   
   No functional change.
   
   ## Testing
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #3962: sched/task/task_spawn.c: initialize variables explicitly

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #3962:
URL: https://github.com/apache/incubator-nuttx/pull/3962


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org