summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author George Burgess IV <gbiv@google.com> 2016-10-11 18:08:23 -0700
committer George Burgess IV <gbiv@google.com> 2016-10-13 15:52:34 -0700
commit56f5f7b79bca91d6b241d35be0f4bf56155cf855 (patch)
tree309a11ef2d9c053c79dcb20ec22f1014dd403a42
parentc98b34bdce1fb1b43755af7fb8538efb0d0dc953 (diff)
Fix a static-analyzer warning.
frameworks/base/tools/aapt2/util/Files.cpp:81:21: warning: Null pointer passed as an argument to a 'nonnull' parameter while ((entry = readdir(dir))) { Bug: None. Test: Warning no longer appears. Change-Id: If242598405e995928378ce317a2e909654e1e985
-rw-r--r--tools/aapt2/util/Files.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/aapt2/util/Files.cpp b/tools/aapt2/util/Files.cpp
index f5e49f11c082..042ff0e6c1b9 100644
--- a/tools/aapt2/util/Files.cpp
+++ b/tools/aapt2/util/Files.cpp
@@ -72,8 +72,8 @@ std::vector<std::string> listFiles(const StringPiece& root, std::string* outErro
std::stringstream errorStr;
errorStr << "unable to open file: " << strerror(errno);
*outError = errorStr.str();
- return {};
}
+ return {};
}
std::vector<std::string> files;