[fpc-pascal]Inifile bug
Jean-Pierre PLANAS
Sybaris at club-internet.fr
Sun Nov 26 11:09:21 CET 2000
Hello
Bug in Inifile (version 1.02)
In inifile, line 523, in TIniFile.FillSectionList method, a call to
oSection.KeyList.Add(TIniFileKey.Create(sIdent, sValue))
is made even if sIdent='' and sValue=''.
I think that when the test "if sLine > '' then" is made, a begin/end
section must stop the add of a new key.
The problem then is we have empty keys and so when the file is saved, we
have line witch contains only the char '=', because the key='' and the
value='', but the key exist...
How to correct the bug :
Add a "begin" at line 495
Add a 'end" at line 525
Jean-Pierre
More information about the fpc-pascal
mailing list