Merge "fix compiler error under FORTIFY_SOURCE=2"

This commit is contained in:
Nick Kralevich
2015-04-25 21:22:31 +00:00
committed by Gerrit Code Review

View File

@ -337,7 +337,9 @@ bool ObbFile::removeFrom(int fd)
return false;
}
ftruncate(fd, mFooterStart);
if (ftruncate(fd, mFooterStart) == -1) {
return false;
}
return true;
}