[osg-submissions] ClipPlane Unitialized Variable

Jeremy Moles jeremy at emperorlinux.com
Wed Jan 16 12:15:28 PST 2008


Attached is a version of the ClipPlane header that initializes
_clipPlaneNum to 0 before calling setClipPlaneNum() in the various
constructors. This is necessary because even though we're setting the
clipPlaneNum with the call to setClipPlanNum(), the function actually
checks the current value first, which is uninitialized.

I found this while running valgrind, and will probably be submitting a
few more the next few days.

(The diff is just for your own cursory glance)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ClipPlane
Type: text/x-csrc
Size: 4484 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080116/f621f7be/attachment.c 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ClipPlane.diff
Type: text/x-patch
Size: 1302 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080116/f621f7be/attachment.bin 


More information about the osg-submissions mailing list