diff options
-rw-r--r-- | dex2oat/dex2oat.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dex2oat/dex2oat.cc b/dex2oat/dex2oat.cc index afc01dce2e..9e6e95855b 100644 --- a/dex2oat/dex2oat.cc +++ b/dex2oat/dex2oat.cc @@ -1252,6 +1252,7 @@ static int dex2oat(int argc, char** argv) { } else { oat_file.reset(new File(oat_fd, oat_location)); oat_file->DisableAutoClose(); + oat_file->SetLength(0); } if (oat_file.get() == nullptr) { PLOG(ERROR) << "Failed to create oat file: " << oat_location; |