Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 08077902 authored by Colin Cross's avatar Colin Cross
Browse files

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
parent 44a9fc56
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment