diff options
author | Ben Collins <bcollins@debian.org> | 1999-11-12 01:18:12 +0000 |
---|---|---|
committer | Ben Collins <bcollins@debian.org> | 1999-11-12 01:18:12 +0000 |
commit | 01d65a7e2025a5aab9df213a20401b7218c6c2b6 (patch) | |
tree | afbe3d4f77afbb65e66c983efd9fd354dd732166 /lib | |
parent | 1de8cbcdaf504355b2cfc17112d671635e7ddfa7 (diff) | |
download | dpkg-01d65a7e2025a5aab9df213a20401b7218c6c2b6.tar.gz |
* lib/tarfn.c: add braces around if to fix compiler warning
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tarfn.c | 3 |
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); |