1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

process_file_requests(): move @more, @ftl and @doc_view variables to

inner scope.
This commit is contained in:
Laurent MONIN 2005-12-13 16:57:17 +01:00 committed by Laurent MONIN
parent 1c7b27c99f
commit 4a930507e4

View File

@ -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;
}