AP_Filesystem: fixed a param ftp bug

if param count changes we need to zero the file size
This commit is contained in:
Andrew Tridgell 2022-01-18 06:44:49 +11:00
parent eddf036750
commit 14d6358f18
1 changed files with 1 additions and 0 deletions

View File

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