From: Edward O'Callaghan Date: Fri, 4 Dec 2015 05:36:02 +0000 (+1100) Subject: gallium/auxiliary: Fix zero integer literal to pointer comparison X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=34782eec31d66e6392390fdf47b1860af08bcde6;p=mesa.git gallium/auxiliary: Fix zero integer literal to pointer comparison Signed-off-by: Edward O'Callaghan Signed-off-by: Marek Olšák --- diff --git a/src/gallium/auxiliary/util/u_mm.c b/src/gallium/auxiliary/util/u_mm.c index 2069b56f464..bd4c4e1b106 100644 --- a/src/gallium/auxiliary/util/u_mm.c +++ b/src/gallium/auxiliary/util/u_mm.c @@ -34,7 +34,7 @@ void u_mmDumpMemInfo(const struct mem_block *heap) { debug_printf("Memory heap %p:\n", (void *) heap); - if (heap == 0) { + if (heap == NULL) { debug_printf(" heap == 0\n"); } else {