Index: tools/android/md5sum/md5sum.cc |
diff --git a/tools/android/md5sum/md5sum.cc b/tools/android/md5sum/md5sum.cc |
index a204569d1fdc99eba0965416bd481bfddf0c0f96..3db05ff18c908c5d1b997d768515cc0c3d4262d6 100644 |
--- a/tools/android/md5sum/md5sum.cc |
+++ b/tools/android/md5sum/md5sum.cc |
@@ -79,11 +79,13 @@ int main(int argc, const char* argv[]) { |
std::string digest; |
for (std::set<std::string>::const_iterator it = files.begin(); |
it != files.end(); ++it) { |
- if (!MD5Sum(it->c_str(), &digest)) |
+ if (!MD5Sum(it->c_str(), &digest)) { |
failed = true; |
- base::FilePath file_path(*it); |
- std::cout << digest << " " |
- << base::MakeAbsoluteFilePath(file_path).value() << std::endl; |
+ } else { |
+ base::FilePath file_path(*it); |
+ std::cout << digest << " " |
+ << base::MakeAbsoluteFilePath(file_path).value() << std::endl; |
+ } |
} |
return failed; |
} |