Explorar o código

* Fixed a chm reader bug that Return value was not initialized if neither binary or text index existed

git-svn-id: trunk@13955 -
andrew %!s(int64=16) %!d(string=hai) anos
pai
achega
46f5d06780
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      packages/chm/src/chmreader.pas

+ 1 - 0
packages/chm/src/chmreader.pas

@@ -930,6 +930,7 @@ var Index   : TMemoryStream;
 function  AbortAndTryTextual:tchmsitemap;
 
 begin
+     Result := nil;
      if Assigned(Index) Then Index.Free;
      // Second Try text Index
      Index := GetObject(IndexFile);