mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
abort_files_load(): make @more and @ftl variables local to the loop.
This commit is contained in:
parent
f331c7ac85
commit
1c7b27c99f
@ -288,11 +288,10 @@ print_error_dialog(struct session *ses, enum connection_state state,
|
|||||||
static void
|
static void
|
||||||
abort_files_load(struct session *ses, int interrupt)
|
abort_files_load(struct session *ses, int interrupt)
|
||||||
{
|
{
|
||||||
struct file_to_load *ftl;
|
while (1) {
|
||||||
int more;
|
struct file_to_load *ftl;
|
||||||
|
int more = 0;
|
||||||
|
|
||||||
do {
|
|
||||||
more = 0;
|
|
||||||
foreach (ftl, ses->more_files) {
|
foreach (ftl, ses->more_files) {
|
||||||
if (!file_to_load_is_active(ftl))
|
if (!file_to_load_is_active(ftl))
|
||||||
continue;
|
continue;
|
||||||
@ -300,7 +299,9 @@ abort_files_load(struct session *ses, int interrupt)
|
|||||||
more = 1;
|
more = 1;
|
||||||
change_connection(&ftl->download, NULL, PRI_CANCEL, interrupt);
|
change_connection(&ftl->download, NULL, PRI_CANCEL, interrupt);
|
||||||
}
|
}
|
||||||
} while (more);
|
|
||||||
|
if (!more) break;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user