forked from Archive/PX4-Autopilot
posix px4_layer fix style
This commit is contained in:
parent
05d9932f6c
commit
4278dd8fb4
|
@ -144,9 +144,9 @@ px4_task_t px4_task_spawn_cmd(const char *name, int scheduler, int priority, int
|
|||
|
||||
// not safe to pass stack data to the thread creation
|
||||
pthdata_t *taskdata = (pthdata_t *)malloc(structsize + len);
|
||||
|
||||
|
||||
if (taskdata == nullptr) {
|
||||
return -ENOMEM;
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
memset(taskdata, 0, structsize + len);
|
||||
|
|
Loading…
Reference in New Issue