From: Denys Vlasenko Date: Mon, 24 May 2010 11:07:55 +0000 (+0200) Subject: unzip: another small code shrink X-Git-Tag: 1_17_0~160 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc2bb8f04f048bf60a8b53bd6ad04eef1b8d3626;p=platform%2Fupstream%2Fbusybox.git unzip: another small code shrink function old new delta find_cdf_offset 173 160 -13 Signed-off-by: Denys Vlasenko --- diff --git a/archival/unzip.c b/archival/unzip.c index 5e8bac3..1d3291a 100644 --- a/archival/unzip.c +++ b/archival/unzip.c @@ -159,9 +159,9 @@ static uint32_t find_cdf_offset(void) off_t end; end = xlseek(zip_fd, 0, SEEK_END); - if (end < 1024) - end = 1024; end -= 1024; + if (end < 0) + end = 0; xlseek(zip_fd, end, SEEK_SET); full_read(zip_fd, buf, 1024);