mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-11 01:38:07 +02:00
* fixed use of uninitialized "read" result in case 0 bytes were read, fixes
hang on Darwin/ppc git-svn-id: trunk@24623 -
This commit is contained in:
parent
5907b3c9aa
commit
2f29a6ebd3
@ -36,10 +36,12 @@ procedure fpcm_update_revision_info(Sender: TObject);
|
||||
if i = 0 then
|
||||
sleep(100);
|
||||
i := AProcess.Output.Read(b,1);
|
||||
if b = 10 then
|
||||
exit;
|
||||
if i > 0 then
|
||||
ALine := ALine + chr(b);
|
||||
begin
|
||||
if b = 10 then
|
||||
exit;
|
||||
ALine := ALine + chr(b);
|
||||
end;
|
||||
until not AProcess.Running and (i=0);
|
||||
|
||||
result := (ALine <> '');
|
||||
|
Loading…
Reference in New Issue
Block a user