summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pacman/callback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index d0b7c409..36531a26 100644
--- a/src/pacman/callback.c
+++ b/src/pacman/callback.c
@@ -632,7 +632,7 @@ void cb_dl_progress(const char *filename, off_t file_xfered, off_t file_total)
}
/* bogus values : stop here */
- if(xfered > total) {
+ if(xfered > total || xfered < 0) {
return;
}