summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-01-05 19:49:08 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-01-05 19:49:08 +0000
commita6923f9aae5465be45b4e716bd337eb40544f6cd (patch)
tree0d103db72763d56b140a26379ebee5fb5abaeb98
parent4819d21c74609de165361695427e89fbd796079d (diff)
downloadpacman-a6923f9aae5465be45b4e716bd337eb40544f6cd.tar.xz
fixed a regression
-rw-r--r--src/pacman/download.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/download.c b/src/pacman/download.c
index 9ea92836..3e44b921 100644
--- a/src/pacman/download.c
+++ b/src/pacman/download.c
@@ -356,7 +356,7 @@ int downloadfiles_forreal(list_t *servers, const char *localpath,
fprintf(stderr, "warning: failed to get filesize for %s\n", fn);
}
/* check mtimes */
- if(mtime1 && strlen(mtime1)) {
+ if(mtime1) {
char fmtime[64];
if(!FtpModDate(fn, fmtime, sizeof(fmtime)-1, control)) {
fprintf(stderr, "warning: failed to get mtime for %s\n", fn);