Browse Source

* also initialize variant part in Empty function

git-svn-id: trunk@36980 -
svenbarth 8 years ago
parent
commit
bd74f9af64
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/rtl-objpas/src/inc/rtti.pp

+ 1 - 0
packages/rtl-objpas/src/inc/rtti.pp

@@ -535,6 +535,7 @@ end;
 class function TValue.Empty: TValue;
 class function TValue.Empty: TValue;
 begin
 begin
   result.FData.FTypeInfo := nil;
   result.FData.FTypeInfo := nil;
+  result.FData.FAsUInt64 := 0;
 end;
 end;
 
 
 class procedure TValue.Make(ABuffer: pointer; ATypeInfo: PTypeInfo; out result: TValue);
 class procedure TValue.Make(ABuffer: pointer; ATypeInfo: PTypeInfo; out result: TValue);