mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
Remove check for group to retriev argv string
Now the argument vector is stored in TLS, thus no need to check if group is valid Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
This commit is contained in:
@@ -67,8 +67,7 @@ size_t group_argvstr(FAR struct tcb_s *tcb, FAR char *args, size_t size)
|
||||
|
||||
/* Sanity checks and idle tasks */
|
||||
|
||||
if (!tcb || !tcb->group || !tcb->group->tg_info || size < 1 ||
|
||||
is_idle_task(tcb))
|
||||
if (!tcb || size < 1 || is_idle_task(tcb))
|
||||
{
|
||||
*args = '\0';
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user