mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-24 08:05:13 +08:00
cppchecker fix UID might be NULL
This commit is contained in:
parent
beb6a8bf11
commit
10e2829123
1 changed files with 4 additions and 0 deletions
|
@ -459,6 +459,10 @@ static int nxp_15693_print_signature(uint8_t *uid, uint8_t *signature) {
|
|||
// uid[8] tag uid
|
||||
// returns description of the best match
|
||||
static const char *getTagInfo_15(uint8_t *uid) {
|
||||
if (uid == NULL) {
|
||||
return "";
|
||||
}
|
||||
|
||||
uint64_t myuid, mask;
|
||||
int i = 0, best = -1;
|
||||
memcpy(&myuid, uid, sizeof(uint64_t));
|
||||
|
|
Loading…
Reference in a new issue