From b990d9fa7ef2da4498f72d35837b59edf52096af Mon Sep 17 00:00:00 2001 From: Mark Charlebois Date: Sat, 23 May 2015 00:53:13 +0000 Subject: [PATCH] Missed a check for < 0 Signed-off-by: Mark Charlebois --- src/modules/uORB/uORBDevices_posix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/uORB/uORBDevices_posix.cpp b/src/modules/uORB/uORBDevices_posix.cpp index c80824d39b..8042a5d6ea 100644 --- a/src/modules/uORB/uORBDevices_posix.cpp +++ b/src/modules/uORB/uORBDevices_posix.cpp @@ -284,7 +284,7 @@ uORB::DeviceNode::publish(const orb_metadata *meta, orb_advert_t handle, const v { //warnx("uORB::DeviceNode::publish meta = %p", meta); - if (handle < 0) { + if (handle == 0) { warnx("uORB::DeviceNode::publish called with invalid handle"); errno = EINVAL; return ERROR;