mirror of https://gitlab.com/basile.b/dexed.git
fix uninit variable that caused the module name to be in the import list
This commit is contained in:
parent
a1dde3a592
commit
ae4fd5f763
src
|
@ -992,10 +992,9 @@ end;
|
|||
function getModuleName(const list: TLexTokenList): string;
|
||||
var
|
||||
ltk: PLexToken;
|
||||
mtok: boolean;
|
||||
mtok: boolean = false;
|
||||
begin
|
||||
Result := '';
|
||||
mtok := False;
|
||||
for ltk in list do
|
||||
begin
|
||||
if mtok then
|
||||
|
@ -1020,7 +1019,7 @@ end;
|
|||
procedure getImports(const list: TLexTokenList; imports: TStrings);
|
||||
var
|
||||
i: integer;
|
||||
imp: boolean;
|
||||
imp: boolean = false;
|
||||
tok: PLexToken;
|
||||
itm: string = '';
|
||||
begin
|
||||
|
|
Loading…
Reference in New Issue