From: Dave Airlie Date: Thu, 17 Feb 2005 11:13:59 +0000 (+0000) Subject: fix some 0->NULLs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=934be3266fe7c873f8fa1154af20d378282d2d47;p=mesa.git fix some 0->NULLs --- diff --git a/src/mesa/drivers/dri/common/mm.c b/src/mesa/drivers/dri/common/mm.c index 6572ccd9914..5781d9936c2 100644 --- a/src/mesa/drivers/dri/common/mm.c +++ b/src/mesa/drivers/dri/common/mm.c @@ -54,7 +54,7 @@ memHeap_t *mmInit(int ofs, PMemBlock blocks; if (size <= 0) { - return 0; + return NULL; } blocks = (TMemBlock *) calloc(1,sizeof(TMemBlock)); if (blocks) { @@ -63,7 +63,7 @@ memHeap_t *mmInit(int ofs, blocks->free = 1; return (memHeap_t *)blocks; } else - return 0; + return NULL; }