mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 04:39:34 +02:00
fcl-db: base: initialize local variable to zero. Bug #30928
git-svn-id: trunk@34900 -
This commit is contained in:
parent
a82a134be8
commit
ae509ecd15
@ -1631,12 +1631,13 @@ var L : Longint;
|
|||||||
P : PLongint;
|
P : PLongint;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
L:=0;
|
||||||
P:=@L;
|
P:=@L;
|
||||||
Result:=GetData(P);
|
Result:=GetData(P);
|
||||||
If Result then
|
If Result then
|
||||||
Case Datatype of
|
Case DataType of
|
||||||
ftInteger,ftAutoinc : AValue:=Plongint(P)^;
|
ftInteger,ftAutoInc : AValue:=PLongint(P)^;
|
||||||
ftWord : AValue:=Pword(P)^;
|
ftWord : AValue:=PWord(P)^;
|
||||||
ftSmallint : AValue:=PSmallint(P)^;
|
ftSmallint : AValue:=PSmallint(P)^;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user