commit | 0807790216981c19a8931ff742a0c62b9290b063 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Tue Apr 12 18:20:11 2022 -0700 |
committer | Colin Cross <ccross@android.com> | Tue Apr 12 18:20:11 2022 -0700 |
tree | c9b6d0a372c59da5badbe743673def2e97ae2dbf | |
parent | 44a9fc5691b21176e73ca908bda9e66aba4d9643 [diff] |
Fix typo in return value VENDOR_TAG_NAME_ERR, which is NULL, was being returend by a function that returns int. When NULL is defined as 0 that compiles, but the C++ spec also allows NULL to be std::nullptr, which cannot be implicitly cast to int. Use VENDOR_TAG_TYPE_ERR instead. Fixes compiling against musl libc, which uses std::nullptr for NULL. Bug: 190084016 Test: m USE_HOST_MUSL=true host-native Change-Id: Ib14a2ada791ef59dc37e0a0d1d9e401ce86d7d6f