mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-07-22 03:31:54 +00:00
nfc_initiator_target_is_present() allows pnt==NULL
This commit is contained in:
@@ -1729,7 +1729,7 @@ int
|
||||
pn53x_initiator_target_is_present(struct nfc_device *pnd, const nfc_target *pnt)
|
||||
{
|
||||
// Check if the argument target nt is equals to current saved target
|
||||
if (!pn53x_current_target_is(pnd, pnt)) {
|
||||
if ((pnt != NULL) && (!pn53x_current_target_is(pnd, pnt))) {
|
||||
return NFC_ETGRELEASED;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user