Merge "fix compiler error under FORTIFY_SOURCE=2"
This commit is contained in:
@ -337,7 +337,9 @@ bool ObbFile::removeFrom(int fd)
|
||||
return false;
|
||||
}
|
||||
|
||||
ftruncate(fd, mFooterStart);
|
||||
if (ftruncate(fd, mFooterStart) == -1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user