coverty finds this a deadcode, cppchecker complains...
This commit is contained in:
@@ -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] == '\\')) {
|
||||
|
||||
Reference in New Issue
Block a user