summaryrefslogtreecommitdiff
path: root/src/archive.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-07-21 18:25:22 +0300
committerTimo Teras <timo.teras@iki.fi>2009-07-21 18:25:22 +0300
commit772e4aa26a2a0b21b667c54a11e05eae183e0915 (patch)
treee4d06dffe6419d2eaefd3fc5dc4dd6fa0055418e /src/archive.c
parent2345548e4522a988024426432d0ed0e421599eba (diff)
downloadapk-tools-772e4aa26a2a0b21b667c54a11e05eae183e0915.tar.gz
apk-tools-772e4aa26a2a0b21b667c54a11e05eae183e0915.tar.bz2
apk-tools-772e4aa26a2a0b21b667c54a11e05eae183e0915.tar.xz
apk-tools-772e4aa26a2a0b21b667c54a11e05eae183e0915.zip
various: fix installation of new style apks
Diffstat (limited to 'src/archive.c')
-rw-r--r--src/archive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/archive.c b/src/archive.c
index af0055e..26419d4 100644
--- a/src/archive.c
+++ b/src/archive.c
@@ -93,7 +93,7 @@ static size_t tar_entry_read(void *stream, void *ptr, size_t size)
return -1;
teis->bytes_left -= size;
- if (teis->csum != NULL)
+ if (teis->csum == NULL)
return size;
EVP_DigestUpdate(&teis->mdctx, ptr, size);