diff options
Diffstat (limited to 'riscos/theme.c')
-rw-r--r-- | riscos/theme.c | 3 |
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) { |