aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/minidump_file_writer.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/minidump_file_writer.cc b/src/client/minidump_file_writer.cc
index 354ffc90..1be3f504 100644
--- a/src/client/minidump_file_writer.cc
+++ b/src/client/minidump_file_writer.cc
@@ -68,7 +68,9 @@ bool MinidumpFileWriter::Close() {
bool result = true;
if (file_ != -1) {
- ftruncate(file_, position_);
+ if (-1 == ftruncate(file_, position_)) {
+ return false;
+ }
#if __linux__
result = (sys_close(file_) == 0);
#else