|
PC-lint/FlexeLint Output | Reference Manual Explanation | Home Page bug613.cpp
Why is this program producing garbage?
bug613.cpp lint Output
--- Module: bug613.cpp
_
}
bug613.cpp 8 Info 818: Pointer parameter 'argv' (line 3) could be declared as
pointing to const
During Specific Walk:
File bug613.cpp line 6: count(0?, 101)
bug613.cpp 15 Warning 613: Possible use of null pointer 'p' in argument to
operator 'unary *' [Reference: file bug613.cpp: line 6]
During Specific Walk:
File bug613.cpp line 6: count(0?, 101)
bug613.cpp 15 Warning 613: Possible use of null pointer 'p' in argument to
operator 'unary *' [Reference: file bug613.cpp: line 6]
During Specific Walk:
File bug613.cpp line 6: count(0?, 101)
bug613.cpp 16 Warning 613: Possible use of null pointer 'p' in argument to
operator 'unary *' [Reference: file bug613.cpp: line 6]
During Specific Walk:
File bug613.cpp line 6: count(0?, 101)
bug613.cpp 15 Warning 613: Possible use of null pointer 'p' in argument to
operator '++' [Reference: file bug613.cpp: line 6]
Reference Manual Explanation
613 Possible use of null pointer 'Symbol' in [left/right]
argument to operator 'String' Reference -- From
information gleaned from earlier statements, it is
possible that a null pointer (a pointer whose value is 0)
can be used in a context where null pointers are
inappropriate. Such contexts include: Unary *, pointer
increment (++) or decrement(--), addition of pointer to
numeric, and subtraction of two pointers. In the case of
binary operators, one of the words 'left' or 'right' is
used to designate which operand is null. Symbol
identifies the pointer variable that may be NULL. See
also messages 413 and 794.
|
Previous Bug - Bug #648 - January 2002