summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-05-30 23:04:10 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2014-05-30 23:04:10 +0100
commitf313635e2158a32de7cf558146015a05c1de27bc (patch)
treef2f957f3239a4f3f0f0a4a91a6fd80cc57533f0d /riscos
parent0b39a3750c20463a1a4d8e4b5a62caeb72464cf8 (diff)
downloadnetsurf-f313635e2158a32de7cf558146015a05c1de27bc.tar.gz
Reduce scope of a variable.
Diffstat (limited to 'riscos')
-rw-r--r--riscos/theme.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/riscos/theme.c b/riscos/theme.c
index f1b7ae249..a12ed926d 100644
--- a/riscos/theme.c
+++ b/riscos/theme.c
@@ -176,11 +176,10 @@ static void ro_gui_theme_get_available_in_dir(const char *directory)
int context = 0;
int read_count;
osgbpb_INFO(100) info;
- os_error *error;
while (context != -1) {
/* read some directory info */
- error = xosgbpb_dir_entries_info(directory,
+ os_error *error = xosgbpb_dir_entries_info(directory,
(osgbpb_info_list *) &info, 1, context,
sizeof(info), 0, &read_count, &context);
if (error) {