Make GCC happier with initializer lists.
Change-Id: Ib2623116621797b1136633f0fe3e95168ebca678
diff --git a/authorization_set.cpp b/authorization_set.cpp
index 3a5b46e..09093c9 100644
--- a/authorization_set.cpp
+++ b/authorization_set.cpp
@@ -206,12 +206,12 @@
return true;
}
-keymaster_key_param_t empty_set = {};
+keymaster_key_param_t empty_set = {KM_TAG_INVALID, {}};
keymaster_key_param_t& AuthorizationSet::operator[](int at) {
if (is_valid() == OK && at < (int)elems_size_) {
return elems_[at];
}
- empty_set = {};
+ empty_set = {KM_TAG_INVALID, {}};
return empty_set;
}
@@ -219,7 +219,7 @@
if (is_valid() == OK && at < (int)elems_size_) {
return elems_[at];
}
- empty_set = {};
+ empty_set = {KM_TAG_INVALID, {}};
return empty_set;
}