Mesa (master): glu/sgi: Add assert to check for null pointer dereference.
Vinson Lee
vlee at kemper.freedesktop.org
Mon Feb 15 10:15:14 UTC 2010
Module: Mesa
Branch: master
Commit: e045af41469f2e2b512fc748cbad841774a39905
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e045af41469f2e2b512fc748cbad841774a39905
Author: Vinson Lee <vlee at vmware.com>
Date: Mon Feb 15 02:14:02 2010 -0800
glu/sgi: Add assert to check for null pointer dereference.
---
src/glu/sgi/libnurbs/nurbtess/monoChain.cc | 1 +
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 b17b940..cb28129 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;
More information about the mesa-commit
mailing list