]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Replace NULL comparisons
authorHans Kristian Rosbach <hk-git@circlestorm.org>
Thu, 14 May 2015 10:04:51 +0000 (12:04 +0200)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Sun, 17 May 2015 16:01:22 +0000 (18:01 +0200)
Conflicts:
trees.c

trees.c

diff --git a/trees.c b/trees.c
index 3504fa3172bea1f3504d272df86fec8bc0d2f6a4..c735f008ab3ebf43efe6be4712993dc48144d02f 100644 (file)
--- a/trees.c
+++ b/trees.c
@@ -858,14 +858,14 @@ void ZLIB_INTERNAL _tr_flush_block(deflate_state *s, char *buf, ulg stored_len,
         if (static_lenb <= opt_lenb) opt_lenb = static_lenb;
 
     } else {
-        Assert(buf != (char*)0, "lost buf");
+        Assert(buf != NULL, "lost buf");
         opt_lenb = static_lenb = stored_len + 5; /* force a stored block */
     }
 
 #ifdef FORCE_STORED
-    if (buf != (char*)0) { /* force stored block */
+    if (buf != NULL) { /* force stored block */
 #else
-    if (stored_len+4 <= opt_lenb && buf != (char*)0) {
+    if (stored_len+4 <= opt_lenb && buf != NULL) {
                        /* 4: two words for the lengths */
 #endif
         /* The test buf != NULL is only necessary if LIT_BUFSIZE > WSIZE.