diff --git a/command.c b/command.c index 3ffe0eb31e..bccfdb7f86 100644 --- a/command.c +++ b/command.c @@ -2300,10 +2300,12 @@ bool command_event(enum event_command cmd, void *data) case CMD_EVENT_PAUSE_CHECKS: if (runloop_ctl(RUNLOOP_CTL_IS_PAUSED, NULL)) { + bool is_paused = false; + RARCH_LOG("%s\n", msg_hash_to_str(MSG_PAUSED)); command_event(CMD_EVENT_AUDIO_STOP, NULL); - bool is_paused = runloop_ctl(RUNLOOP_CTL_IS_PAUSED, NULL); + is_paused = runloop_ctl(RUNLOOP_CTL_IS_PAUSED, NULL); runloop_msg_queue_push(msg_hash_to_str(MSG_PAUSED), 1, is_paused ? 1: 30, true); if (settings->video.black_frame_insertion || is_paused) diff --git a/input/input_keyboard.c b/input/input_keyboard.c index 31256bc693..6fb758cf54 100644 --- a/input/input_keyboard.c +++ b/input/input_keyboard.c @@ -168,6 +168,7 @@ static bool input_keyboard_line_event( bool input_keyboard_line_append(const char *word) { + unsigned i = 0; unsigned len = strlen(word); char *newbuf = (char*) @@ -179,7 +180,6 @@ bool input_keyboard_line_append(const char *word) newbuf + g_keyboard_line->ptr, g_keyboard_line->size - g_keyboard_line->ptr + len); - unsigned i = 0; for (i = 0; i < len; i++) { newbuf[g_keyboard_line->ptr] = word[i];