From: Vinson Lee Date: Mon, 15 Feb 2010 10:14:02 +0000 (-0800) Subject: glu/sgi: Add assert to check for null pointer dereference. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e045af41469f2e2b512fc748cbad841774a39905;p=mesa.git glu/sgi: Add assert to check for null pointer dereference. --- 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;