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:
Philippe Teuwen 2019-04-12 13:43:36 +02:00
parent e7f4f615c0
commit 1cb2ae889c

View file

@ -127,5 +127,5 @@ int demodCOTAG(void) {
}
int readCOTAGUid(void) {
return CmdCOTAGRead > 0;
return CmdCOTAGRead == 1;
}