Reduce scope of a variable.

This commit is contained in:
Michael Drake 2014-05-30 23:04:10 +01:00
parent 0b39a3750c
commit f313635e21

View File

@ -176,11 +176,10 @@ static void ro_gui_theme_get_available_in_dir(const char *directory)
int context = 0; int context = 0;
int read_count; int read_count;
osgbpb_INFO(100) info; osgbpb_INFO(100) info;
os_error *error;
while (context != -1) { while (context != -1) {
/* read some directory info */ /* read some directory info */
error = xosgbpb_dir_entries_info(directory, os_error *error = xosgbpb_dir_entries_info(directory,
(osgbpb_info_list *) &info, 1, context, (osgbpb_info_list *) &info, 1, context,
sizeof(info), 0, &read_count, &context); sizeof(info), 0, &read_count, &context);
if (error) { if (error) {