From f313635e2158a32de7cf558146015a05c1de27bc Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 30 May 2014 23:04:10 +0100 Subject: Reduce scope of a variable. --- riscos/theme.c | 3 +-- 1 file changed, 1 insertion(+), 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) { -- cgit v1.2.3