posix px4_layer fix style

This commit is contained in:
Daniel Agar 2018-11-16 09:34:48 -05:00
parent 05d9932f6c
commit 4278dd8fb4
1 changed files with 2 additions and 2 deletions

View File

@ -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);