Skip to content

Commit

Permalink
C89 buildfix
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Apr 25, 2018
1 parent 7b1ad55 commit 9a7ca5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cheevos/cheevos.c
Original file line number Diff line number Diff line change
Expand Up @@ -3644,6 +3644,8 @@ static int cheevos_iterate(coro_t *coro)
if (coro->json)
{
char error_response[64];
char error_message[256];

cheevos_get_value(
coro->json,
CHEEVOS_JSON_KEY_ERROR,
Expand Down Expand Up @@ -3689,7 +3691,6 @@ static int cheevos_iterate(coro_t *coro)
free((void*)coro->json);

/* Site returned error, display it */
char error_message[256];
snprintf(error_message, sizeof(error_message),
"RetroAchievements: %s",
error_response);
Expand Down

0 comments on commit 9a7ca5f

Please sign in to comment.