glu/sgi: Add assert to check for null pointer dereference.
authorVinson Lee <vlee@vmware.com>
Mon, 15 Feb 2010 10:14:02 +0000 (02:14 -0800)
committerVinson Lee <vlee@vmware.com>
Mon, 15 Feb 2010 10:14:02 +0000 (02:14 -0800)
src/glu/sgi/libnurbs/nurbtess/monoChain.cc

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