glu/sgi: Add assert to check for null pointer dereference.

This commit is contained in:
Vinson Lee 2010-02-15 02:14:02 -08:00
parent a05fdbcb71
commit e045af4146

View file

@ -264,6 +264,7 @@ monoChain* directedLineLoopToMonoChainLoop(directedLine* loop)
prevCusp = temp;
}
}
assert(ret);
ret->insert(new monoChain(prevCusp, firstCusp));
return ret;