summaryrefslogtreecommitdiff
path: root/riscos/hotlist.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-05-26 11:50:11 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2014-05-26 11:50:11 +0100
commit2e79a8ee7a873e9a1e47a8ab837ace8ee12aa075 (patch)
tree932ad6578bc254bea17744886c949b2983c59309 /riscos/hotlist.c
parent41e5f68d2cbc9ec9cbe8a7b963d689056fe829ed (diff)
downloadnetsurf-2e79a8ee7a873e9a1e47a8ab837ace8ee12aa075.tar.gz
netsurf-2e79a8ee7a873e9a1e47a8ab837ace8ee12aa075.tar.bz2
Scope reduce a couple of variables.
Diffstat (limited to 'riscos/hotlist.c')
-rw-r--r--riscos/hotlist.c10
1 files changed, 5 insertions, 5 deletions
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);