Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int CLuaFunctionDefs::XMLNodeGetName ( lua_State* luaVM )
- {
- CXMLNode* pNode = NULL;
- CScriptArgReader argStream ( luaVM );
- argStream.ReadUserData ( pNode );
- if ( !argStream.HasErrors ( ) )
- {
- if ( pNode )
- {
- if ( pNode )
- {
- lua_pushstring (
- luaVM, pNode->GetTagName ().c_str () );
- return 1;
- }
- }
- }
- else
- m_pScriptDebugging->LogCustom (
- luaVM, argStream.GetFullErrorMessage() );
- lua_pushboolean ( luaVM, false );
- return 1;
- }
- This suspicious code was found in MTASA project by PVS-Studio static code analyzer.
- Warning message is:
- V571 Recurring check. The 'if (pNode)' condition was already verified in line 162. cluafunctiondefs.xml.cpp 164
- 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
Advertisement