Browse Source

Uninitialized variable

Detected by Clang

Source commit: b1915e670a122e3c8c8dfbfb578ebb13ed27015e
Martin Prikryl 3 months ago
parent
commit
b93b0a1694
2 changed files with 6 additions and 2 deletions
  1. 2 2
      source/Console.cbproj
  2. 4 0
      source/console/Main.cpp

+ 2 - 2
source/Console.cbproj

@@ -42,10 +42,10 @@
         <ProjectType>CppConsoleApplication</ProjectType>
         <SanitizedProjectName>Console</SanitizedProjectName>
         <VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
-        <VerInfo_Keys>CompanyName=Martin Prikryl;FileDescription=Console interface for WinSCP;FileVersion=6.1.0.0;InternalName=console;LegalCopyright=(c) 2000-2025 Martin Prikryl;LegalTrademarks=;OriginalFilename=winscp.com;ProductName=WinSCP;ProductVersion=6.6.0.0;ReleaseType=stable;WWW=https://winscp.net/</VerInfo_Keys>
+        <VerInfo_Keys>CompanyName=Martin Prikryl;FileDescription=Console interface for WinSCP;FileVersion=6.2.0.0;InternalName=console;LegalCopyright=(c) 2000-2025 Martin Prikryl;LegalTrademarks=;OriginalFilename=winscp.com;ProductName=WinSCP;ProductVersion=6.6.0.0;ReleaseType=stable;WWW=https://winscp.net/</VerInfo_Keys>
         <VerInfo_Locale>1033</VerInfo_Locale>
         <VerInfo_MajorVer>6</VerInfo_MajorVer>
-        <VerInfo_MinorVer>1</VerInfo_MinorVer>
+        <VerInfo_MinorVer>2</VerInfo_MinorVer>
     </PropertyGroup>
     <PropertyGroup Condition="'$(Cfg_1)'!=''">
         <BCC_DebugLineNumbers>true</BCC_DebugLineNumbers>

+ 4 - 0
source/console/Main.cpp

@@ -213,6 +213,10 @@ char* WideStringToString(const wchar_t* Message)
       Buffer = NULL;
     }
   }
+  else
+  {
+    Buffer = NULL;
+  }
   return Buffer;
 }
 //---------------------------------------------------------------------------