summaryrefslogtreecommitdiff
path: root/usr/src/tools/ctf/cvt/ctf.c
diff options
context:
space:
mode:
authorRichard PALO <richard@NetBSD.org>2015-02-04 09:32:50 +0100
committerDan McDonald <danmcd@omniti.com>2015-02-07 21:40:56 -0500
commitad0b1ea5d69a45fe23c434277599e315f29a5fca (patch)
tree70013d8a02a94adbdd998e946a09cf35c96516c7 /usr/src/tools/ctf/cvt/ctf.c
parent97a9db610324e7db4393415018e0e737485a94cd (diff)
downloadillumos-joyent-ad0b1ea5d69a45fe23c434277599e315f29a5fca.tar.gz
5589 improper use of NULL in tools/ctf
Reviewed by: David Höppner <0xffea@gmail.com> Reviewed by: Josef "Jeff" Sipek <jeffpc@josefsipek.net> Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src/tools/ctf/cvt/ctf.c')
-rw-r--r--usr/src/tools/ctf/cvt/ctf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/tools/ctf/cvt/ctf.c b/usr/src/tools/ctf/cvt/ctf.c
index 1e425758c2..83f09cb43e 100644
--- a/usr/src/tools/ctf/cvt/ctf.c
+++ b/usr/src/tools/ctf/cvt/ctf.c
@@ -1216,7 +1216,7 @@ decompress_ctf(caddr_t cbuf, size_t cbufsz, caddr_t dbuf, size_t dbufsz)
(rc = inflate(&zstr, Z_NO_FLUSH)) != Z_STREAM_END ||
(rc = inflateEnd(&zstr)) != Z_OK) {
warning("CTF decompress zlib error %s\n", zError(rc));
- return (NULL);
+ return (0);
}
debug(3, "reflated %lu bytes to %lu, pointer at %d\n",