Browse Source

Uninitialized variable

Source commit: 2aef5e7c9ed7b909ef4f98bdeba4a1c4fd6f5606
Martin Prikryl 8 years ago
parent
commit
693fe81a24
1 changed files with 1 additions and 0 deletions
  1. 1 0
      source/core/FtpFileSystem.cpp

+ 1 - 0
source/core/FtpFileSystem.cpp

@@ -2529,6 +2529,7 @@ void __fastcall TFTPFileSystem::ReadFile(const UnicodeString FileName,
       AFile = new TRemoteDirectoryFile();
       AFile->FullFileName = FileName;
       AFile->FileName = L"";
+      Own = true;
     }
     else
     {