Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void ColouriseErlangDoc(....) {
- {
- ...
- } else if (erlangBIFs.InList(cur)
- && strcmp(cur,"erlang:")){
- style = SCE_ERLANG_BIFS;
- }
- ...
- }
- Everywhere in the other files a construct of the strcmp() == 0 or strcmp() != 0 kind is used.
- Most likely this is what should be written here: strcmp(cur,"erlang:") == 0
- This suspicious code was found in wxWidgets project by PVS-Studio static code analyzer.
- Warning message is:
- V526 The 'strcmp' function returns 0 if corresponding strings are equal. Consider examining the condition for mistakes. wxscintilla lexerlang.cxx 204
- 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