mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 17:43:02 +00:00
Prevent explicit NULL pointer dereference warning
This commit is contained in:
parent
16996aad6d
commit
a87f3ae3cd
@ -182,7 +182,7 @@ static int cb_nbio_image_menu_thumbnail(void *data, size_t len)
|
|||||||
nbio_handle_t *nbio = (nbio_handle_t*)data;
|
nbio_handle_t *nbio = (nbio_handle_t*)data;
|
||||||
struct nbio_image_handle *image = nbio ?
|
struct nbio_image_handle *image = nbio ?
|
||||||
(struct nbio_image_handle*)nbio->data : NULL;
|
(struct nbio_image_handle*)nbio->data : NULL;
|
||||||
void *handle = image_transfer_new(image->type);
|
void *handle = image ? image_transfer_new(image->type) : NULL;
|
||||||
|
|
||||||
if (!handle)
|
if (!handle)
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user