Browse Source

another fix for the new warning introduced in r39347, hopefully it fixes win32 build

git-svn-id: trunk@39352 -
Károly Balogh 7 years ago
parent
commit
e7025b6759
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/cfileutl.pas

+ 1 - 0
compiler/cfileutl.pas

@@ -1300,6 +1300,7 @@ end;
         GetShortName:=n;
         GetShortName:=n;
 {$ifdef win32}
 {$ifdef win32}
         hs:=n+#0;
         hs:=n+#0;
+        hs2:='';
         { may become longer in case of e.g. ".a" -> "a~1" or so }
         { may become longer in case of e.g. ".a" -> "a~1" or so }
         setlength(hs2,length(hs)*2);
         setlength(hs2,length(hs)*2);
         i:=Windows.GetShortPathName(@hs[1],@hs2[1],length(hs)*2);
         i:=Windows.GetShortPathName(@hs[1],@hs2[1],length(hs)*2);