[Mesa-dev] [PATCH mesa 10/12] util: s/0/NULL/ for pointer

Eric Engestrom eric.engestrom at intel.com
Mon Oct 29 17:13:31 UTC 2018


Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
---
 src/util/u_dynarray.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/u_dynarray.h b/src/util/u_dynarray.h
index c1aa79c8ac6ca8fce810..9bed2b9c25c879672e22 100644
--- a/src/util/u_dynarray.h
+++ b/src/util/u_dynarray.h
@@ -134,7 +134,7 @@ util_dynarray_trim(struct util_dynarray *buf)
          } else {
             free(buf->data);
          }
-         buf->data = 0;
+         buf->data = NULL;
          buf->capacity = 0;
       }
    }
-- 
Cheers,
  Eric



More information about the mesa-dev mailing list