MAVLink: Do no not init fds struct

This commit is contained in:
Lorenz Meier 2016-08-28 10:26:59 +02:00
parent 1a716e1a0d
commit 19c2ae615f

View File

@ -2090,7 +2090,7 @@ MavlinkReceiver::receive_thread(void *arg)
#endif
mavlink_message_t msg;
struct pollfd fds[1] = {};
struct pollfd fds[1];
if (_mavlink->get_protocol() == SERIAL) {
fds[0].fd = _mavlink->get_uart_fd();