mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-12 18:09:22 +02:00
* don't call blockwrite if there's nothing to write
git-svn-id: trunk@6166 -
This commit is contained in:
parent
228943271f
commit
e1c994a3be
@ -836,7 +836,8 @@ end;
|
||||
|
||||
procedure tppufile.writebuf;
|
||||
begin
|
||||
if not crc_only then
|
||||
if not crc_only and
|
||||
(bufidx <> 0) then
|
||||
blockwrite(f,buf^,bufidx);
|
||||
inc(bufstart,bufidx);
|
||||
bufidx:=0;
|
||||
|
Loading…
Reference in New Issue
Block a user