summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-02-15 02:14:02 -0800
committerVinson Lee <vlee@vmware.com>2010-02-15 02:14:02 -0800
commite045af41469f2e2b512fc748cbad841774a39905 (patch)
treee2450ee812fb39acbeb21204c54640ac94260288 /src
parenta05fdbcb719ac64e6be842372813f0f4ca2f4f93 (diff)
glu/sgi: Add assert to check for null pointer dereference.
Diffstat (limited to 'src')
-rw-r--r--src/glu/sgi/libnurbs/nurbtess/monoChain.cc1
1 files changed, 1 insertions, 0 deletions
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;