summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Collins <bcollins@debian.org>1999-11-12 01:18:12 +0000
committerBen Collins <bcollins@debian.org>1999-11-12 01:18:12 +0000
commit01d65a7e2025a5aab9df213a20401b7218c6c2b6 (patch)
treeafbe3d4f77afbb65e66c983efd9fd354dd732166 /lib
parent1de8cbcdaf504355b2cfc17112d671635e7ddfa7 (diff)
downloaddpkg-01d65a7e2025a5aab9df213a20401b7218c6c2b6.tar.gz
* lib/tarfn.c: add braces around if to fix compiler warning
Diffstat (limited to 'lib')
-rw-r--r--lib/tarfn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tarfn.c b/lib/tarfn.c
index 799f0c6bb..18c0bc17b 100644
--- a/lib/tarfn.c
+++ b/lib/tarfn.c
@@ -200,13 +200,14 @@ TarExtractor(
status = functions->Read(userData, buffer, 512);
// if we didn't get 512 bytes read, punt
- if (512 != status)
+ if (512 != status) {
if ( status > 0 ) { /* Read partial header record */
errno = 0;
return -1;
} else {
return status;
}
+ }
copysize = long_read > 512 ? 512 : long_read;
memcpy (bp, buffer, copysize);