mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
cppcheck fix null pointer dereference
This commit is contained in:
parent
857f0c0d9b
commit
b8458322e1
1 changed files with 1 additions and 1 deletions
|
@ -592,12 +592,12 @@ static int CmdLCD(const char *Cmd) {
|
|||
arg_param_end
|
||||
};
|
||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||
CLIParserFree(ctx);
|
||||
|
||||
int r_len = 0;
|
||||
uint8_t raw[1] = {0};
|
||||
CLIGetHexWithReturn(ctx, 1, raw, &r_len);
|
||||
int j = arg_get_int_def(ctx, 2, 1);
|
||||
CLIParserFree(ctx);
|
||||
if (j < 1) {
|
||||
PrintAndLogEx(WARNING, "Count must be larger than zero");
|
||||
return PM3_EINVARG;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue