Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int CLuaFunctionDefs::GetPlayerSerial ( lua_State* luaVM )
- {
- char szSerial [ 64 ];
- g_pCore->GetNetwork()->GetSerial(szSerial, sizeof(szSerial));
- if ( szSerial )
- {
- lua_pushstring ( luaVM, szSerial );
- return 1;
- }
- lua_pushboolean ( luaVM, false );
- return 1;
- }
- This suspicious code was found in MTASA project by PVS-Studio static code analyzer.
- Warning message is:
- V600 Consider inspecting the condition. The 'szSerial' pointer is always not equal to NULL. cluafunctiondefs.player.cpp 508
- 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