From e045af41469f2e2b512fc748cbad841774a39905 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Mon, 15 Feb 2010 02:14:02 -0800 Subject: glu/sgi: Add assert to check for null pointer dereference. --- src/glu/sgi/libnurbs/nurbtess/monoChain.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/glu/sgi/libnurbs/nurbtess/monoChain.cc b/src/glu/sgi/libnurbs/nurbtess/monoChain.cc index b17b9405c1..cb28129adf 100644 --- a/src/glu/sgi/libnurbs/nurbtess/monoChain.cc +++ b/src/glu/sgi/libnurbs/nurbtess/monoChain.cc @@ -264,6 +264,7 @@ monoChain* directedLineLoopToMonoChainLoop(directedLine* loop) prevCusp = temp; } } + assert(ret); ret->insert(new monoChain(prevCusp, firstCusp)); return ret; -- cgit v1.2.3