util: s/0/NULL/ for pointer
authorEric Engestrom <eric.engestrom@intel.com>
Sun, 28 Oct 2018 18:04:01 +0000 (18:04 +0000)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 30 Oct 2018 18:10:59 +0000 (18:10 +0000)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/util/u_dynarray.h

index c1aa79c8ac6ca8fce8100cbfc5839faff486ebe3..9bed2b9c25c879672e222e6767564bb0b8bd0890 100644 (file)
@@ -134,7 +134,7 @@ util_dynarray_trim(struct util_dynarray *buf)
          } else {
             free(buf->data);
          }
-         buf->data = 0;
+         buf->data = NULL;
          buf->capacity = 0;
       }
    }