Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static char *token_equivs1[] =
- {
- ....
- "KW_IF",
- "KW_IGNOREPAT",
- "KW_INCLUDES" //<==
- "KW_JUMP",
- "KW_MACRO",
- "KW_PATTERN",
- ....
- };
- static char *ael_token_subst(const char *mess)
- {
- ....
- int token_equivs_entries = sizeof(token_equivs1)/sizeof(char*);
- ....
- for (i=0; i<token_equivs_entries; i++) {
- ....
- }
- ....
- }
- This suspicious code was found in Asterisk project by PVS-Studio static code analyzer.
- Warning message is:
- V653 A suspicious string consisting of two parts is used for array initialization. It is possible that a comma is missing. Consider inspecting this literal: "KW_INCLUDES" "KW_JUMP". ael.y 736
- 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