summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-12-28 12:05:49 -0800
committerBen Longbons <b.r.longbons@gmail.com>2013-12-28 12:06:18 -0800
commita9271d878fd71b017a99cdaf63ba31763d981e76 (patch)
treedec42085f468ed70247747225534d1ce444b8294
parentb886ae325ede019c0967cbb7f557477baaf8aac2 (diff)
downloadtmwa-a9271d878fd71b017a99cdaf63ba31763d981e76.tar.gz
tmwa-a9271d878fd71b017a99cdaf63ba31763d981e76.tar.bz2
tmwa-a9271d878fd71b017a99cdaf63ba31763d981e76.tar.xz
tmwa-a9271d878fd71b017a99cdaf63ba31763d981e76.zip
fix abort due to inverted condition
-rw-r--r--src/io/write.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io/write.cpp b/src/io/write.cpp
index 67002e2..71f05ae 100644
--- a/src/io/write.cpp
+++ b/src/io/write.cpp
@@ -40,7 +40,7 @@ namespace io
{
if (fd != -1)
{
- if (!close())
+ if (close() == -1)
abort();
}
}