Browse Source

Reusing variable

Source commit: 2ecec49cafc6ffd725c05b61dce44e9e99de76a5
Martin Prikryl 11 months ago
parent
commit
bf49481672
1 changed files with 1 additions and 1 deletions
  1. 1 1
      source/core/WebDAVFileSystem.cpp

+ 1 - 1
source/core/WebDAVFileSystem.cpp

@@ -213,7 +213,7 @@ void __fastcall TWebDAVFileSystem::Open()
   }
 
   size_t Port = Data->PortNumber;
-  UnicodeString ProtocolName = (FTerminal->SessionData->Ftps == ftpsNone) ? HttpProtocol : HttpsProtocol;
+  UnicodeString ProtocolName = (Data->Ftps == ftpsNone) ? HttpProtocol : HttpsProtocol;
   UnicodeString Path = Data->RemoteDirectory;
   // PathToNeon is not used as we cannot call AbsolutePath here
   UnicodeString EscapedPath = StrFromNeon(PathEscape(StrToNeon(Path)).c_str());