mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
Ensure dlcb is defined before calling it
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
0303b26b1e
commit
488f341f57
@ -100,7 +100,9 @@ static int curl_progress(void *filename, double dltotal, double dlnow,
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(handle->dlcb) {
|
||||||
handle->dlcb((const char*)filename, (long)dlnow, (long)dltotal);
|
handle->dlcb((const char*)filename, (long)dlnow, (long)dltotal);
|
||||||
|
}
|
||||||
|
|
||||||
prevprogress = dlnow;
|
prevprogress = dlnow;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user