mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-20 09:29:07 +08:00
MAVLink: Do no not init fds struct
This commit is contained in:
parent
1a716e1a0d
commit
19c2ae615f
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user