AP_Filesystem: fix ftp burst read with credit to deanharken

This commit is contained in:
Andy Piper 2021-10-14 21:18:37 +01:00 committed by Randy Mackay
parent f3dd4cafcb
commit 71f5c6f4fb
1 changed files with 1 additions and 0 deletions

View File

@ -55,6 +55,7 @@ int AP_Filesystem_Param::open(const char *fname, int flags)
r.open = true;
r.start = 0;
r.count = 0;
r.read_size = 0;
r.writebuf = nullptr;
if (!read_only) {
// setup for upload