wok view busybox/stuff/busybox-1.10.1-unlzma.u @ rev 2785
slitaz-eeepc: Tiny clean up
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Apr 27 21:56:49 2009 +0200 (2009-04-27) |
parents | |
children |
line source
1 --- busybox-1.10.1/archival/libunarchive/decompress_unlzma.c
2 +++ busybox-1.10.1/archival/libunarchive/decompress_unlzma.c
3 @@ -491,10 +491,16 @@
5 if (full_write(dst_fd, buffer, buffer_pos) != buffer_pos) {
6 bad:
7 + len = -1;
8 + }
9 + else {
10 + USE_DESKTOP(total_written += buffer_pos;)
11 + len = USE_DESKTOP(total_written) + 0;
12 + }
13 + if (ENABLE_FEATURE_CLEAN_UP) {
14 rc_free(rc);
15 - return -1;
16 + free(buffer);
17 + free(p);
18 }
19 - rc_free(rc);
20 - USE_DESKTOP(total_written += buffer_pos;)
21 - return USE_DESKTOP(total_written) + 0;
22 + return len;
23 }