mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Check if android_app or android variables are NULL in android_input_poll_memcpy
This commit is contained in:
parent
c1312d3b41
commit
629a660af4
@ -883,8 +883,14 @@ static void android_input_poll_memcpy(void *data)
|
||||
unsigned i, j;
|
||||
android_input_t *android = (android_input_t*)data;
|
||||
struct android_app *android_app = (struct android_app*)g_android;
|
||||
|
||||
if (!android)
|
||||
return;
|
||||
|
||||
memcpy(&android->copy, &android->thread, sizeof(android->copy));
|
||||
|
||||
if (!android_app)
|
||||
return;
|
||||
|
||||
for (i = 0; i < MAX_PADS; i++)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user