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/04/03 12:42:58 UTC

[GitHub] [incubator-nuttx] v01d commented on a change in pull request #3289: sched: task: Fix to initialize the task-specific data

v01d commented on a change in pull request #3289:
URL: https://github.com/apache/incubator-nuttx/pull/3289#discussion_r606660620



##########
File path: sched/task/task_init.c
##########
@@ -137,6 +137,10 @@ int nxtask_init(FAR struct task_tcb_s *tcb, const char *name, int priority,
   group->tg_libvars = up_stack_frame(&tcb->cmn, sizeof(struct libvars_s));
   DEBUGASSERT(group->tg_libvars != NULL);
 
+  /* Initialize the task-specific data */
+
+  memset(group->tg_libvars, 0, sizeof(struct libvars_s));

Review comment:
       condition on `#ifndef CONFIG_BUILD_KERNEL`?




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