mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 10:43:01 +08:00
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:
parent
e7f4f615c0
commit
1cb2ae889c
1 changed files with 1 additions and 1 deletions
|
@ -127,5 +127,5 @@ int demodCOTAG(void) {
|
|||
}
|
||||
|
||||
int readCOTAGUid(void) {
|
||||
return CmdCOTAGRead > 0;
|
||||
return CmdCOTAGRead == 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue