Quellcode durchsuchen

* avoid warning

florian vor 2 Wochen
Ursprung
Commit
ca8e8af1b6
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      packages/libtar/src/libtar.pp

+ 1 - 0
packages/libtar/src/libtar.pp

@@ -875,6 +875,7 @@ FUNCTION  TTarArchive.ReadFile : RawByteString;
 VAR
 VAR
   RestBytes : INTEGER;
   RestBytes : INTEGER;
 BEGIN
 BEGIN
+  ReadFile := '';
   IF FBytesToGo = 0 THEN EXIT;
   IF FBytesToGo = 0 THEN EXIT;
   RestBytes := Records (FBytesToGo) * RECORDSIZE - FBytesToGo;
   RestBytes := Records (FBytesToGo) * RECORDSIZE - FBytesToGo;
   SetLength (Result, FBytesToGo);
   SetLength (Result, FBytesToGo);