Inattentiveness
V532 Consider inspecting the statement of ‘*pointer++’ pattern. Probably meant: ‘(*pointer)++’. NimContact namereplacing.cpp 92
int findLine(...., int *positionInOldString) { .... *positionInOldString ++; return (linesInFile - 1); } .... }
Probably the programmer wanted to change the variable pointed to by the positionInOldString pointer. But instead he changed the pointer itself.
The code should most likely be fixed in the following way:
(*positionInOldString)++;
Please click here to see more bugs from this project.