projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8af2b5
)
fix some 0->NULLs
author
Dave Airlie
<airliedfreedesktop.org>
Thu, 17 Feb 2005 11:13:59 +0000
(11:13 +0000)
committer
Dave Airlie
<airliedfreedesktop.org>
Thu, 17 Feb 2005 11:13:59 +0000
(11:13 +0000)
src/mesa/drivers/dri/common/mm.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/common/mm.c
b/src/mesa/drivers/dri/common/mm.c
index 6572ccd9914314ea1d167de9579c3ccf05b07295..5781d9936c2c6a9d1f24b1489256515b273edf27 100644
(file)
--- 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
;
}