Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/service/linux_nfc_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ int doWriteT4tData(unsigned char *command, unsigned char *ndef_buffer, int ndef_
int doReadT4tData(unsigned char *command, unsigned char *ndef_buffer, int *ndef_buffer_length)
{
int ret = 0;
if (ndef_buffer == NULL || ndef_buffer_length <= 0) {
if (ndef_buffer == NULL || ndef_buffer_length == NULL || *ndef_buffer_length <= 0) {
NXPLOG_API_E ("%s: invalide buffer!", __FUNCTION__);
return NFA_STATUS_FAILED;
}
Expand Down