Avoid Coverity BAD_COMPARE, but honestly I don't get it at all...
int readCOTAGUid(void) {
>>> CID 337768: Incorrect expression (BAD_COMPARE)
>>> This implicit conversion to a function pointer is suspicious: "CmdCOTAGRead > NULL".
130 return CmdCOTAGRead > 0;
This is just an int compared to zero, why it thinks it's a null pointer??
This commit is contained in:
@@ -127,5 +127,5 @@ int demodCOTAG(void) {
|
||||
}
|
||||
|
||||
int readCOTAGUid(void) {
|
||||
return CmdCOTAGRead > 0;
|
||||
return CmdCOTAGRead == 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user