mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 19:49:09 +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
|
if i = 0 then
|
||||||
sleep(100);
|
sleep(100);
|
||||||
i := AProcess.Output.Read(b,1);
|
i := AProcess.Output.Read(b,1);
|
||||||
if b = 10 then
|
|
||||||
exit;
|
|
||||||
if i > 0 then
|
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);
|
until not AProcess.Running and (i=0);
|
||||||
|
|
||||||
result := (ALine <> '');
|
result := (ALine <> '');
|
||||||
|
Loading…
Reference in New Issue
Block a user