diff --git a/libraries/GCS_MAVLink/GCS_FTP.cpp b/libraries/GCS_MAVLink/GCS_FTP.cpp index fff430c369..801c38fd61 100644 --- a/libraries/GCS_MAVLink/GCS_FTP.cpp +++ b/libraries/GCS_MAVLink/GCS_FTP.cpp @@ -44,7 +44,7 @@ bool GCS_MAVLINK::ftp_init(void) { } ftp.requests = new ObjectBuffer(5); - if (ftp.requests == nullptr) { + if (ftp.requests == nullptr || ftp.requests->get_size() == 0) { goto failed; }