fix: possible bad null ref

This commit is contained in:
iceman1001 2019-02-24 20:00:41 +01:00
commit 17fcd8c24b

View file

@ -255,7 +255,7 @@ bool HexToBuffer(const char *errormsg, const char *hexvalue, uint8_t * buffer, s
} }
if (buflen > maxbufferlen) { if (buflen > maxbufferlen) {
PrintAndLog("%s HEX length (%d) more than %d", errormsg, *bufferlen, maxbufferlen); PrintAndLog("%s HEX length (%d) more than %d", errormsg, (bufferlen) ? *bufferlen : -1, maxbufferlen);
return false; return false;
} }