diff options
author | David 'Digit' Turner <digit+github@google.com> | 2022-02-18 14:00:07 (GMT) |
---|---|---|
committer | David 'Digit' Turner <digit+github@google.com> | 2022-02-18 14:01:08 (GMT) |
commit | 9116613e39ba4e18f50494e97eb968a874effdcf (patch) | |
tree | e89406664a3d9d20b01a9cef4333e102ce106898 /src/inline.sh | |
parent | f404f0059d71c8c86da7b56c48794266b5befd10 (diff) | |
download | Ninja-9116613e39ba4e18f50494e97eb968a874effdcf.zip Ninja-9116613e39ba4e18f50494e97eb968a874effdcf.tar.gz Ninja-9116613e39ba4e18f50494e97eb968a874effdcf.tar.bz2 |
Fix ReadFile() handle leak on read error on Windows.
Small change to fix a file handle leak in case of error.
Also return -EIO instead of -1 to signal read errors, since it
is more consistent with what is happening here.
Diffstat (limited to 'src/inline.sh')
0 files changed, 0 insertions, 0 deletions