coverty finds this a deadcode, cppchecker complains...

This commit is contained in:
iceman1001 2021-01-29 16:18:09 +01:00
commit a6e4b03c28

View file

@ -853,11 +853,6 @@ 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] == '\\')) {