Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::string getUtf8 (unsigned char c,
- ToUTF8::Utf8Encoder& encoder, ToUTF8::FromType encoding)
- {
- ....
- conv[0xa2] = 0xf3;
- conv[0xa3] = 0xbf;
- conv[0xa4] = 0x0;
- conv[0xe1] = 0x8c;
- conv[0xe1] = 0x8c; <<<<====
- conv[0xe3] = 0x0;
- ....
- }
- This suspicious code was found in OpenMW project by PVS-Studio static code analyzer.
- Warning message is:
- V519 The 'conv[0xe1]' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 103, 104. openmw fontloader.cpp 104
- 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