summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/dload.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/dload.c')
-rw-r--r--lib/libalpm/dload.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c
index ebfd0425..121ba86d 100644
--- a/lib/libalpm/dload.c
+++ b/lib/libalpm/dload.c
@@ -100,7 +100,9 @@ static int curl_progress(void *filename, double dltotal, double dlnow,
return 1;
}
- handle->dlcb((const char*)filename, (long)dlnow, (long)dltotal);
+ if(handle->dlcb) {
+ handle->dlcb((const char*)filename, (long)dlnow, (long)dltotal);
+ }
prevprogress = dlnow;