summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-10-04 15:31:17 -0500
committerDan McGee <dan@archlinux.org>2011-10-04 15:31:17 -0500
commitcf0edb92ba349afad02e6bc1ca79da0cb6a72ea3 (patch)
treef6e3a86f5433aee5d6ed4912e199ee7a01caded9 /lib
parent94bc64ae1bd6a51d71829a58a2e1972f629d47fb (diff)
downloadpacman-cf0edb92ba349afad02e6bc1ca79da0cb6a72ea3.tar.xz
Parse '0' as a valid package installed size
This was a bad oversight on my part, pointed out by Jakob. Whoops. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
index 18d1c365..beefa936 100644
--- a/lib/libalpm/util.c
+++ b/lib/libalpm/util.c
@@ -1089,7 +1089,7 @@ off_t _alpm_strtoofft(const char *line)
errno = 0;
/* we are trying to parse bare numbers only, no leading anything */
- if(line[0] < '1' || line[0] > '9') {
+ if(line[0] < '0' || line[0] > '9') {
return (off_t)-1;
}
result = strtoull(line, &end, 10);