X-Git-Url: https://git.saurik.com/apple/file_cmds.git/blobdiff_plain/e19e38b253de139e081f5d462bc053e7b809ea38..aad783a64f985f1e27c7ffc6e2d3f671323716a9:/compress/compress.c diff --git a/compress/compress.c b/compress/compress.c index ffbc7e4..0732fa4 100644 --- a/compress/compress.c +++ b/compress/compress.c @@ -27,8 +27,9 @@ * SUCH DAMAGE. */ +#include #ifndef lint -static const char copyright[] = +__used static const char copyright[] = "@(#) Copyright (c) 1992, 1993\n\ The Regents of the University of California. All rights reserved.\n"; #endif @@ -201,7 +202,7 @@ compress(const char *in, const char *out, int bits) { size_t nr; struct stat isb, sb; - FILE *ifp, *ofp; + FILE *ifp = NULL, *ofp = NULL; int exists, isreg, oreg; u_char buf[1024]; @@ -212,7 +213,6 @@ compress(const char *in, const char *out, int bits) } isreg = oreg = !exists || S_ISREG(sb.st_mode); - ifp = ofp = NULL; if ((ifp = fopen(in, "r")) == NULL) { cwarn("%s", in); return; @@ -304,7 +304,7 @@ decompress(const char *in, const char *out, int bits) } isreg = oreg = !exists || S_ISREG(sb.st_mode); - ifp = ofp = NULL; + ofp = NULL; if ((ifp = zopen(in, "r", bits)) == NULL) { cwarn("%s", in); return;