aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authornealsid <nealsid@4c0a9323-5329-0410-9bdc-e9ce6186880e>2010-04-26 23:52:50 +0000
committernealsid <nealsid@4c0a9323-5329-0410-9bdc-e9ce6186880e>2010-04-26 23:52:50 +0000
commitd5b689e7af360245691e1801196d912e8774408f (patch)
treec8318fa4b8a38e496984c6627d5534a0f9e25696 /src/client
parentBreakpad processor: Work around overload resolution problems in stream pos_ty... (diff)
downloadbreakpad-d5b689e7af360245691e1801196d912e8774408f.tar.xz
Patch from Zhurun to fix build breaks in gcc 4.4.1
CR URL: http://breakpad.appspot.com/100001/show A=Zhurun R=nealsid git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@573 4c0a9323-5329-0410-9bdc-e9ce6186880e
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