Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define LOCALE_SSHORTDATE 31
- #define LOCALE_SLONGDATE 32
- MSVCRT__locale_t CDECL MSVCRT__create_locale(....)
- {
- ....
- if (time_data[i]==
- LOCALE_SSHORTDATE && !lcid[LC_TIME]) {
- size += ....;
- } else if(time_data[i]==
- LOCALE_SSHORTDATE && !lcid[LC_TIME]) {
- size += ....;
- } else {
- ....
- }
- Most likely this is what should be written here: else if (time_data[i]==LOCALE_SLONGDATE && !lcid[LC_TIME])
- This suspicious code was found in ReactOS project by PVS-Studio static code analyzer.
- Warning message is:
- V517 The use of 'if (A) {...} else if (A) {...}' pattern was detected. There is a probability of logical error presence. Check lines: 1193, 1195. locale.c 1193
- 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