mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
Fix cppcheck dereferencing null pointer fix
This commit is contained in:
parent
1092abf12e
commit
5eda1ea400
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ void LRPIncCounter(uint8_t *ctr, size_t ctrlen) {
|
||||||
void LRPEncode(LRPContext_t *ctx, uint8_t *data, size_t datalen, uint8_t *resp, size_t *resplen) {
|
void LRPEncode(LRPContext_t *ctx, uint8_t *data, size_t datalen, uint8_t *resp, size_t *resplen) {
|
||||||
*resplen = 0;
|
*resplen = 0;
|
||||||
|
|
||||||
if (data == NULL) {
|
if ((datalen > 0) && (data == NULL)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
uint8_t xdata[1024] = {0};
|
uint8_t xdata[1024] = {0};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue