diff options
author | Elliott Hughes <enh@google.com> | 2016-10-25 17:24:54 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2016-10-25 17:24:54 -0700 |
commit | 7acce1b0ab0077601309cc8c7001a6fdcf7dafa7 (patch) | |
tree | 1d38cb79a6f409fe7b004d01e89d640946df0736 /adb/bugreport.cpp | |
parent | 61131fc92fe936ca9fc34011005fb4a298eb1ca3 (diff) | |
download | core-7acce1b0ab0077601309cc8c7001a6fdcf7dafa7.tar.gz core-7acce1b0ab0077601309cc8c7001a6fdcf7dafa7.tar.bz2 core-7acce1b0ab0077601309cc8c7001a6fdcf7dafa7.zip |
Make "adb bugreport"'s .zip check case-insensitive.
Bug: TODO
Test: manual
Change-Id: I0ece7d8dcb708e3755477f7df5ff03807fd227f2
Diffstat (limited to 'adb/bugreport.cpp')
-rw-r--r-- | adb/bugreport.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/adb/bugreport.cpp b/adb/bugreport.cpp index 24be529a1..143c62a34 100644 --- a/adb/bugreport.cpp +++ b/adb/bugreport.cpp @@ -240,8 +240,7 @@ int Bugreport::DoIt(TransportType transport_type, const char* serial, int argc, // Uses a default value until device provides the proper name dest_file = "bugreport.zip"; } else { - if (!android::base::EndsWith(dest_file, ".zip")) { - // TODO: use a case-insensitive comparison (like EndsWithIgnoreCase + if (!android::base::EndsWithIgnoreCase(dest_file, ".zip")) { dest_file += ".zip"; } } |