diff options
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibCore/IODevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCore/IODevice.cpp b/Userland/Libraries/LibCore/IODevice.cpp index 58f29ed057..e3df3a743e 100644 --- a/Userland/Libraries/LibCore/IODevice.cpp +++ b/Userland/Libraries/LibCore/IODevice.cpp @@ -281,8 +281,8 @@ bool IODevice::write(const u8* data, int size) { int rc = ::write(m_fd, data, size); if (rc < 0) { - perror("IODevice::write: write"); set_error(errno); + perror("IODevice::write: write"); return false; } return rc == size; |