mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-22 09:57:36 +08:00
MAVLink: Do no not init fds struct
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user