From 7d16016d968b5177082eb3e4d3388d1acf30c3a0 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 8 Jul 2016 17:19:43 +0200 Subject: [PATCH] (Cheevos.c) Cleanups --- cheevos.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cheevos.c b/cheevos.c index 6f157b9ea1..472995f390 100644 --- a/cheevos.c +++ b/cheevos.c @@ -2078,7 +2078,7 @@ bool cheevos_load(const void *data) const char *json = NULL; retro_time_t timeout = 5000000; unsigned game_id = 0; - char url[256]; + char url[256] = {0}; settings_t *settings = config_get_ptr(); const struct retro_game_info *info = (const struct retro_game_info*)data; @@ -2165,8 +2165,7 @@ bool cheevos_load(const void *data) RARCH_LOG("CHEEVOS this game doesn't feature achievements\n"); return false; - found: - +found: if (!cheevos_get_by_game_id(&json, game_id, &timeout)) { if (!cheevos_parse(json))