From 2e79a8ee7a873e9a1e47a8ab837ace8ee12aa075 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 26 May 2014 11:50:11 +0100 Subject: Scope reduce a couple of variables. --- riscos/hotlist.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'riscos') diff --git a/riscos/hotlist.c b/riscos/hotlist.c index 3f4935164..7a5a7edfa 100644 --- a/riscos/hotlist.c +++ b/riscos/hotlist.c @@ -219,12 +219,12 @@ void ro_gui_hotlist_destroy(void) void ro_gui_hotlist_open(void) { - os_error *error; - char command[2048]; - if (nsoption_bool(external_hotlists) && - nsoption_charp(external_hotlist_app) != NULL && - *nsoption_charp(external_hotlist_app) != '\0') { + nsoption_charp(external_hotlist_app) != NULL && + *nsoption_charp(external_hotlist_app) != '\0') { + char command[2048]; + os_error *error; + snprintf(command, sizeof(command), "Filer_Run %s", nsoption_charp(external_hotlist_app)); error = xos_cli(command); -- cgit v1.2.3