Skip to content

Commit

Permalink
Fixed Coverity issue.
Browse files Browse the repository at this point in the history
CID 11668: Uninitialized scalar field (UNINIT_CTOR)
Non-static class member _primitiveMode is not initialized in this constructor nor in any functions that it calls.
  • Loading branch information
robertosfield committed May 24, 2011
1 parent 3357cc0 commit 65d2ddd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/osg/GLBeginEndAdapter.cpp
Expand Up @@ -24,7 +24,8 @@ GLBeginEndAdapter::GLBeginEndAdapter(State* state):
_normalAssigned(false),
_normal(0.0f,0.0f,1.0f),
_colorAssigned(false),
_color(1.0f,1.0f,1.0f,1.0f)
_color(1.0f,1.0f,1.0f,1.0f),
_primitiveMode(0)
{
}

Expand Down

0 comments on commit 65d2ddd

Please sign in to comment.