diff --git a/src/drivers/device/vdev_posix.cpp b/src/drivers/device/vdev_posix.cpp index c5e1c9a4f5..745a2acb4c 100644 --- a/src/drivers/device/vdev_posix.cpp +++ b/src/drivers/device/vdev_posix.cpp @@ -270,7 +270,7 @@ extern "C" { if (ret >= 0) { if (timeout > 0) { // Use a work queue task - work_s _hpwork; + work_s _hpwork = {}; hrt_work_queue(&_hpwork, (worker_t)&timer_cb, (void *)&sem, 1000 * timeout); px4_sem_wait(&sem);