diff options
-rwxr-xr-x | include/gralloc_priv.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/gralloc_priv.h b/include/gralloc_priv.h index 6d13b88..59a08ad 100755 --- a/include/gralloc_priv.h +++ b/include/gralloc_priv.h @@ -182,7 +182,10 @@ struct private_handle_t { hnd->numInts + hnd->numFds != sNumInts + sNumFds || hnd->magic != sMagic) { - ALOGE("invalid gralloc handle (at %p)", reinterpret_cast<void *>(const_cast<native_handle *>(h))); + void *handle = reinterpret_cast<void *>(const_cast<native_handle *>(h)); + if (handle != 0) { + ALOGE("invalid gralloc handle (at %p)", handle); + } return -EINVAL; } return 0; |