From d9afa9170cf80bad09cdcd2d0c9d47de9f7a4a9f Mon Sep 17 00:00:00 2001 From: Supernature2k Date: Tue, 21 Nov 2017 12:04:47 +0100 Subject: [PATCH] Fix https://github.com/libretro/RetroArch/issues/5737 fix issue with network command working only 1 time each see https://github.com/libretro/RetroArch/issues/5737 --- command.c | 1 + 1 file changed, 1 insertion(+) diff --git a/command.c b/command.c index 97b847c484..4003ec563c 100644 --- a/command.c +++ b/command.c @@ -641,6 +641,7 @@ static void command_stdin_poll(command_t *handle) bool command_poll(command_t *handle) { + memset(handle->state, 0, sizeof(handle->state)); #if defined(HAVE_NETWORKING) && defined(HAVE_NETWORK_CMD) && defined(HAVE_COMMAND) command_network_poll(handle); #endif