diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-12-28 12:05:49 -0800 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-12-28 12:06:18 -0800 |
commit | a9271d878fd71b017a99cdaf63ba31763d981e76 (patch) | |
tree | dec42085f468ed70247747225534d1ce444b8294 | |
parent | b886ae325ede019c0967cbb7f557477baaf8aac2 (diff) | |
download | tmwa-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.cpp | 2 |
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(); } } |