mirror of
https://github.com/WiVRn/WiVRn.git
synced 2026-11-21 09:31:33 -08:00
Don't crash on non existent properties
This commit is contained in:
1 parent
6b58b63a33
commit
eab4686fb1
1 file changed
+2
@@ -35,6 +35,8 @@ static std::string get_property(const char * property)
|
||||
{
|
||||
auto info = __system_property_find(property);
|
||||
std::string result;
|
||||
if (not info)
|
||||
return result;
|
||||
wrap_lambda cb = [&result](const char * name, const char * value, uint32_t serial) {
|
||||
result = value;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user