aboutsummaryrefslogtreecommitdiff
path: root/zucchini_commands.cc
diff options
context:
space:
mode:
authorCalder Kitagawa <ckitagawa@google.com>2018-03-14 19:28:36 +0000
committerEdward Lesmes <ehmaldonado@google.com>2021-07-23 21:53:02 +0000
commit63974a2cc4de484d94537ef1360a801a52a7c37d (patch)
treec10323b4734f7cf8d2fb70f26b41f85354c79da7 /zucchini_commands.cc
parent56a6ff47bca7087db1916b2beeedee283cd1caf2 (diff)
downloadzucchini-63974a2cc4de484d94537ef1360a801a52a7c37d.tar.gz
[Zucchini]: Cleanup some issues found when merging to trunk.
A few simple changes/typos that require correction which were detected when merging changes into trunk. Change-Id: Ib088ca4a1741e642e3d912d010e4e77ba5fb72b0 Reviewed-on: https://chromium-review.googlesource.com/962357 Commit-Queue: Calder Kitagawa <ckitagawa@google.com> Reviewed-by: Samuel Huang <huangs@chromium.org> Cr-Commit-Position: refs/heads/master@{#543155} NOKEYCHECK=True GitOrigin-RevId: 3135d7d1cb10ef7d7f94da864643da26ed5a9c84
Diffstat (limited to 'zucchini_commands.cc')
-rw-r--r--zucchini_commands.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/zucchini_commands.cc b/zucchini_commands.cc
index 90208a0..53b5bd7 100644
--- a/zucchini_commands.cc
+++ b/zucchini_commands.cc
@@ -144,7 +144,7 @@ zucchini::status::Code MainMatch(MainParams params) {
}
File new_file(params.file_paths[1], File::FLAG_OPEN | File::FLAG_READ);
zucchini::MappedFileReader new_image(std::move(new_file));
- if (old_image.HasError()) {
+ if (new_image.HasError()) {
LOG(ERROR) << "Error with file " << params.file_paths[1].value() << ": "
<< new_image.error();
return zucchini::status::kStatusFileReadError;