mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
process_file_requests(): move @more, @ftl and @doc_view variables to
inner scope.
This commit is contained in:
parent
1c7b27c99f
commit
4a930507e4
@ -707,16 +707,16 @@ load_additional_file(struct file_to_load *ftl, struct document_view *doc_view,
|
||||
void
|
||||
process_file_requests(struct session *ses)
|
||||
{
|
||||
struct file_to_load *ftl;
|
||||
struct document_view *doc_view = NULL;
|
||||
int more;
|
||||
|
||||
if (ses->status.processing_file_requests) return;
|
||||
ses->status.processing_file_requests = 1;
|
||||
|
||||
do {
|
||||
more = 0;
|
||||
while (1) {
|
||||
struct file_to_load *ftl;
|
||||
int more = 0;
|
||||
|
||||
foreach (ftl, ses->more_files) {
|
||||
struct document_view *doc_view;
|
||||
|
||||
if (ftl->req_sent)
|
||||
continue;
|
||||
|
||||
@ -726,7 +726,9 @@ process_file_requests(struct session *ses)
|
||||
load_additional_file(ftl, doc_view, CACHE_MODE_NORMAL);
|
||||
more = 1;
|
||||
}
|
||||
} while (more);
|
||||
|
||||
if (!more) break;
|
||||
};
|
||||
|
||||
ses->status.processing_file_requests = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user