Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SbBool
- SoBaseKit::setPart(const int partnum, SoNode * node)
- {
- ....
- if (childlist->find(node) >= 0) {
- SoDebugError::postWarning("SoBaseKit::setPart",
- "Node pointer (%p, '%s', '%s') is "
- "already used under the same group node in the catalog "
- "as a child of part '%s' -- this is not allowed",
- node,
- node->getName().getString(),
- node->getTypeId().getName().getString(),
- catalog->getName(parentIdx).getString());
- return FALSE;
- }
- ....
- if (node)
- ....
- }
- This suspicious code was found in Coin3D project by PVS-Studio static code analyzer.
- Warning message is:
- V595 The 'node' pointer was utilized before it was verified against nullptr. Check lines: 2397, 2407. sobasekit.cpp 2397
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment