Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1400)

Unified Diff: file_hasher.cc

Issue 6810004: verity: don't error on depth=0 (Closed) Base URL: http://git.chromium.org/git/dm-verity.git@master
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: file_hasher.cc
diff --git a/file_hasher.cc b/file_hasher.cc
index fd6bda27c1e9d569ccf2bcab570708365e0c8e31..14e96040bf0747206629688e7b3cd902ceeb99a0 100644
--- a/file_hasher.cc
+++ b/file_hasher.cc
@@ -48,7 +48,7 @@ bool FileHasher::Initialize(simple_file::File *source,
unsigned int depth,
unsigned int blocks,
const char *alg) {
- if (depth == 0 || !alg || !source || !destination) {
+ if (!alg || !source || !destination) {
LOG(ERROR) << "Invalid arguments supplied to Initialize";
LOG(INFO) << "depth: " << depth;
LOG(INFO) << "s: " << source << " d: " << destination;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698