]> granicus.if.org Git - gc/commitdiff
Changed pointer comparison to NULL from p == NULL to !p.
authorZach Saw <zach.saw@gmail.com>
Fri, 16 Nov 2012 10:46:59 +0000 (21:46 +1100)
committerZach Saw <zach.saw@gmail.com>
Fri, 16 Nov 2012 10:46:59 +0000 (21:46 +1100)
* finalize.c (ITERATE_DL_HASHTBL_BEGIN) : As above.

finalize.c

index aedad09f6d2c0718a6e09a7e1a2c5dcf7243c340..b376540ae76e144f057bd00cf24188cfc2e3ba06 100644 (file)
@@ -601,7 +601,7 @@ GC_API void GC_CALL GC_register_finalizer_unreachable(void * obj,
     for (i = 0; i < dl_size; i++) { \
       curr_dl = dl_hashtbl -> head[i]; \
       prev_dl = NULL; \
-      while (curr_dl != NULL) {
+      while (curr_dl) {
 
 #define ITERATE_DL_HASHTBL_END(curr_dl, prev_dl) \
         prev_dl = curr_dl; \