summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYifan Hong2017-07-12 17:53:32 -0500
committerandroid-build-merger2017-07-12 17:53:32 -0500
commit24aed79b0971da66a92d800c313678c5dcaa96e8 (patch)
treedbb2b526d64f0ac44648fc45ad2890d43713b72b
parent7fbfb36a28ef09417e092e5fd959e2031d6c3bf8 (diff)
parent084e18dc6e6e603dcaf604ea1bcad680959b3f03 (diff)
downloadplatform-system-libvintf-24aed79b0971da66a92d800c313678c5dcaa96e8.tar.gz
platform-system-libvintf-24aed79b0971da66a92d800c313678c5dcaa96e8.tar.xz
platform-system-libvintf-24aed79b0971da66a92d800c313678c5dcaa96e8.zip
Do not abort when assemble_vintf does not get env vars am: 488e16a673
am: 084e18dc6e Change-Id: Ied6c98548fc251a0579b08af65406ae95c39bca7
-rw-r--r--assemble_vintf.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/assemble_vintf.cpp b/assemble_vintf.cpp
index 98fdae3..8b7e609 100644
--- a/assemble_vintf.cpp
+++ b/assemble_vintf.cpp
@@ -42,8 +42,9 @@ public:
42 static bool getFlag(const std::string& key, T* value) { 42 static bool getFlag(const std::string& key, T* value) {
43 const char *envValue = getenv(key.c_str()); 43 const char *envValue = getenv(key.c_str());
44 if (envValue == NULL) { 44 if (envValue == NULL) {
45 std::cerr << "Required " << key << " flag." << std::endl; 45 std::cerr << "Warning: " << key << " is missing, defaulted to " << (*value)
46 return false; 46 << std::endl;
47 return true;
47 } 48 }
48 49
49 if (!parse(envValue, value)) { 50 if (!parse(envValue, value)) {