From e045af41469f2e2b512fc748cbad841774a39905 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Mon, 15 Feb 2010 02:14:02 -0800 Subject: [PATCH] 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 b17b9405c1a..cb28129adfb 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; -- 2.30.2