From 878ad88e5b9bf3b35b2d32b4d89f611f6631d1f8 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 30 Sep 2021 21:34:36 +0200 Subject: [PATCH] Buildfix --- retroarch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/retroarch.c b/retroarch.c index e6e1f8ca7c..ebd803d236 100644 --- a/retroarch.c +++ b/retroarch.c @@ -17151,6 +17151,7 @@ static void input_driver_init_command(struct rarch_state *p_rarch, if (input_stdin_cmd_enable) { + input_driver_state_t *input_st= input_state_get_ptr(); bool grab_stdin = input_st->current_driver->grab_stdin && input_st->current_driver->grab_stdin(input_st->current_data); @@ -17160,7 +17161,8 @@ static void input_driver_init_command(struct rarch_state *p_rarch, "but input driver has already claimed stdin.\n" "Cannot use this command interface.\n"); } - else { + else + { p_rarch->input_driver_command[0] = command_stdin_new(); if (!p_rarch->input_driver_command[1]) RARCH_ERR("Failed to initialize the stdin command interface.\n");