From f03e22b0037a11b09ee1a7bff7cb0b799807ff42 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 22 Oct 2016 17:45:14 +0200 Subject: [PATCH] Revert "Do away with some NULL checks" This reverts commit 07d86a7feb5b43b3f2f5685d76599094996f984f. --- input/input_driver.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/input/input_driver.c b/input/input_driver.c index c0976b7af1..416c62a4a8 100644 --- a/input/input_driver.c +++ b/input/input_driver.c @@ -619,6 +619,9 @@ uint64_t input_keys_pressed(void) unsigned i; uint64_t ret = 0; + if (!current_input || !current_input_data) + return ret; + if (current_input->key_pressed && check_input_driver_block_hotkey( current_input->key_pressed(current_input_data, RARCH_ENABLE_HOTKEY)))