diff options
author | jbj <devnull@localhost> | 2003-04-02 21:16:26 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2003-04-02 21:16:26 +0000 |
commit | 95f01d39a57c3c3d8ebf80cfd78e67c550dc32e5 (patch) | |
tree | d8eaa0d6c4bb93c5c12a18a3e066de0d68e3aae2 /file | |
parent | 1f366d6a00d1cf8dc08a40fe789a1b68b4b80a5a (diff) | |
download | rpm-95f01d39a57c3c3d8ebf80cfd78e67c550dc32e5.tar.gz rpm-95f01d39a57c3c3d8ebf80cfd78e67c550dc32e5.tar.bz2 rpm-95f01d39a57c3c3d8ebf80cfd78e67c550dc32e5.zip |
Splint clean.
CVS patchset: 6729
CVS date: 2003/04/02 21:16:26
Diffstat (limited to 'file')
-rw-r--r-- | file/compress.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/file/compress.c b/file/compress.c index 533fdc91f..6fd8de38b 100644 --- a/file/compress.c +++ b/file/compress.c @@ -202,7 +202,8 @@ uncompressgzipped(const unsigned char *old, /*@=type@*/ /*@=sizeoftype@*/ if (rc != Z_OK) { - (void) fprintf(stderr,"%s: zlib: %s\n", __progname, z.msg); + fprintf(stderr,"%s: zlib: %s\n", __progname, + (z.msg != NULL ? z.msg : "")); return 0; } @@ -210,7 +211,8 @@ uncompressgzipped(const unsigned char *old, rc = inflate(&z, Z_SYNC_FLUSH); /*@=type@*/ if (rc != Z_OK && rc != Z_STREAM_END) { - fprintf(stderr,"%s: zlib: %s\n", __progname, z.msg); + fprintf(stderr,"%s: zlib: %s\n", __progname, + (z.msg != NULL ? z.msg : "")); return 0; } |