mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-25 07:35:40 -07:00
cppchecker ,, silence a warning
This commit is contained in:
parent
6633214957
commit
2c73337bde
1 changed files with 6 additions and 1 deletions
|
@ -834,7 +834,7 @@ static int setCmdSavePaths(const char *Cmd) {
|
|||
CLIParserFree(ctx);
|
||||
|
||||
if (deflen == 0 && dulen == 0 && tlen == 0) {
|
||||
PrintAndLogEx(FAILED, "Must give atleast one path");
|
||||
PrintAndLogEx(FAILED, "Must give at least one path");
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
|
||||
|
@ -853,6 +853,11 @@ static int setCmdSavePaths(const char *Cmd) {
|
|||
path = trace_path;
|
||||
}
|
||||
|
||||
if (path == NULL) {
|
||||
PrintAndLogEx(FAILED, "Must give at least one path");
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
|
||||
// remove trailing slash.
|
||||
size_t nplen = strlen(path);
|
||||
if ((path[nplen - 1] == '/') || (path[nplen - 1] == '\\')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue