mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
cppcheck ctunullpointer
This commit is contained in:
parent
65eb649e58
commit
dfdb8f54cc
1 changed files with 3 additions and 0 deletions
|
@ -745,6 +745,9 @@ void SwapEndian64ex(const uint8_t *src, const size_t len, const uint8_t blockSiz
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
int param_getptr(const char *line, int *bg, int *en, int paramnum) {
|
int param_getptr(const char *line, int *bg, int *en, int paramnum) {
|
||||||
int i;
|
int i;
|
||||||
|
if (line == NULL) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
int len = strlen(line);
|
int len = strlen(line);
|
||||||
|
|
||||||
*bg = 0;
|
*bg = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue