mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-09 13:07:58 -05: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;
|
||||
}
|
||||
|
||||
if(handle->dlcb) {
|
||||
handle->dlcb((const char*)filename, (long)dlnow, (long)dltotal);
|
||||
}
|
||||
|
||||
prevprogress = dlnow;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user