diff --git a/src/url_unreal.c b/src/url_unreal.c index 83cc3b258..530ef1e72 100644 --- a/src/url_unreal.c +++ b/src/url_unreal.c @@ -1234,7 +1234,7 @@ int downloads_in_progress(void) /* Bit stupid to do it this slow way, can't we maintain a counter? Needs to be accurate though */ - for (d = downloads; d; d = d->next); + for (d = downloads; d; d = d->next) count++; return count;