From fb3e3b1cad097dfa2aabefb8aa00f98b25610f68 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sun, 1 Jul 2018 16:08:43 -0400 Subject: [PATCH] uORB::DeviceNode initialize _publisher --- src/modules/uORB/uORBDevices.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/uORB/uORBDevices.hpp b/src/modules/uORB/uORBDevices.hpp index aea838daa5..801812ad54 100644 --- a/src/modules/uORB/uORBDevices.hpp +++ b/src/modules/uORB/uORBDevices.hpp @@ -227,10 +227,10 @@ private: inline static SubscriberData *filp_to_sd(device::file_t *filp); #ifdef __PX4_NUTTX - pid_t _publisher; /**< if nonzero, current publisher. Only used inside the advertise call. + pid_t _publisher {0}; /**< if nonzero, current publisher. Only used inside the advertise call. We allow one publisher to have an open file descriptor at the same time. */ #else - px4_task_t _publisher; /**< if nonzero, current publisher. Only used inside the advertise call. + px4_task_t _publisher {0}; /**< if nonzero, current publisher. Only used inside the advertise call. We allow one publisher to have an open file descriptor at the same time. */ #endif