Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int __cdecl CIcqProto::FileCancel( ... )
- {
- ...
- if (dwUin && ft->ft_magic == FT_MAGIC_ICQ)
- {
- ...
- }
- else if (ft->ft_magic = FT_MAGIC_OSCAR)
- {
- ...
- }
- ...
- }
- This is what should have been written here: else if (ft->ft_magic == FT_MAGIC_OSCAR)
- This suspicious code was found in Miranda IM project by PVS-Studio static code analyzer.
- Warning message is:
- V559 Suspicious assignment inside the condition expression of 'if' operator: ft->ft_magic = 0x4F. icqoscar8 icq_proto.cpp 666
- 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