diff options
author | brianp <brianp> | 2000-09-01 18:00:23 +0000 |
---|---|---|
committer | brianp <brianp> | 2000-09-01 18:00:23 +0000 |
commit | 5d76c3342f5d091c172cd296fcce89f40c93e124 (patch) | |
tree | 99c1f1bf6e320c7eddfcc83699789076a0b2a5ba | |
parent | 844c2fcaa7d65a06b3b786d5736f7fd7b9326b6c (diff) |
init result->next=0 in fxTMNewRangeNode() to be extra safe
-rw-r--r-- | xc/extras/Mesa/src/FX/fxtexman.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xc/extras/Mesa/src/FX/fxtexman.c b/xc/extras/Mesa/src/FX/fxtexman.c index 5963a0db4..ae38d2d76 100644 --- a/xc/extras/Mesa/src/FX/fxtexman.c +++ b/xc/extras/Mesa/src/FX/fxtexman.c @@ -128,6 +128,7 @@ static MemRange *fxTMNewRangeNode(fxMesaContext fxMesa, FxU32 start, FxU32 end) } result->startAddr=start; result->endAddr=end; + result->next=0; return result; } @@ -166,7 +167,6 @@ static void fxTMUInit(fxMesaContext fxMesa, int tmu) (unsigned int)blockstart,(unsigned int)blockend); tmn=fxTMNewRangeNode(fxMesa, blockstart, blockend); - tmn->next=0; if (last) last->next=tmn; else fxMesa->tmFree[tmu]=tmn; |