From c78d3e0fd7130ba8ed9bf53c7e2b5958277695a7 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 25 Jan 2016 18:19:19 +0100 Subject: [PATCH] Cleanups --- menu/cbs/menu_cbs_ok.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/menu/cbs/menu_cbs_ok.c b/menu/cbs/menu_cbs_ok.c index ad9f257a52..bc8e7b8f42 100644 --- a/menu/cbs/menu_cbs_ok.c +++ b/menu/cbs/menu_cbs_ok.c @@ -1076,11 +1076,9 @@ static int generic_action_ok_file_load(const char *path, { case ACTION_OK_FFMPEG: case ACTION_OK_IMAGEVIEWER: - { - if (rarch_task_push_content_load_default( - NULL, new_path, true, action_type, NULL, NULL)) - action_ok_push_quick_menu(); - } + if (rarch_task_push_content_load_default( + NULL, new_path, true, action_type, NULL, NULL)) + action_ok_push_quick_menu(); break; default: break; @@ -1181,8 +1179,8 @@ static int action_ok_download_generic(const char *path, #ifdef HAVE_NETWORKING char s[PATH_MAX_LENGTH]; char s3[PATH_MAX_LENGTH]; - settings_t *settings = config_get_ptr(); - menu_file_transfer_t *transf; + menu_file_transfer_t *transf = NULL; + settings_t *settings = config_get_ptr(); fill_pathname_join(s, settings->network.buildbot_assets_url, "frontend", sizeof(s));