guard, fix coverity CID 408545
This commit is contained in:
@@ -437,17 +437,19 @@ static void showSavePathState(savePaths_t path_index, prefShowOpt_t opt) {
|
|||||||
strcpy(s, _RED_("unknown")" save path......");
|
strcpy(s, _RED_("unknown")" save path......");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((session.defaultPaths[path_index] == NULL) || (strcmp(session.defaultPaths[path_index], "") == 0)) {
|
if (path_index < spItemCount) {
|
||||||
PrintAndLogEx(INFO, " %s %s "_WHITE_("not set"),
|
if ((session.defaultPaths[path_index] == NULL) || (strcmp(session.defaultPaths[path_index], "") == 0)) {
|
||||||
prefShowMsg(opt),
|
PrintAndLogEx(INFO, " %s %s "_WHITE_("not set"),
|
||||||
s
|
prefShowMsg(opt),
|
||||||
);
|
s
|
||||||
} else {
|
);
|
||||||
PrintAndLogEx(INFO, " %s %s "_GREEN_("%s"),
|
} else {
|
||||||
prefShowMsg(opt),
|
PrintAndLogEx(INFO, " %s %s "_GREEN_("%s"),
|
||||||
s,
|
prefShowMsg(opt),
|
||||||
session.defaultPaths[path_index]
|
s,
|
||||||
);
|
session.defaultPaths[path_index]
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user