mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-17 01:33:16 +03:00
Reduce scope of a variable.
This commit is contained in:
parent
0b39a3750c
commit
f313635e21
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user