mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
guard, fix coverity CID 408545
This commit is contained in:
parent
e3765a7ec0
commit
e9df21d3ab
1 changed files with 13 additions and 11 deletions
|
@ -437,6 +437,7 @@ static void showSavePathState(savePaths_t path_index, prefShowOpt_t opt) {
|
||||||
strcpy(s, _RED_("unknown")" save path......");
|
strcpy(s, _RED_("unknown")" save path......");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (path_index < spItemCount) {
|
||||||
if ((session.defaultPaths[path_index] == NULL) || (strcmp(session.defaultPaths[path_index], "") == 0)) {
|
if ((session.defaultPaths[path_index] == NULL) || (strcmp(session.defaultPaths[path_index], "") == 0)) {
|
||||||
PrintAndLogEx(INFO, " %s %s "_WHITE_("not set"),
|
PrintAndLogEx(INFO, " %s %s "_WHITE_("not set"),
|
||||||
prefShowMsg(opt),
|
prefShowMsg(opt),
|
||||||
|
@ -450,6 +451,7 @@ static void showSavePathState(savePaths_t path_index, prefShowOpt_t opt) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void showPlotPosState(void) {
|
static void showPlotPosState(void) {
|
||||||
PrintAndLogEx(INFO, " Plot window............ X "_GREEN_("%4d")" Y "_GREEN_("%4d")" H "_GREEN_("%4d")" W "_GREEN_("%4d"),
|
PrintAndLogEx(INFO, " Plot window............ X "_GREEN_("%4d")" Y "_GREEN_("%4d")" H "_GREEN_("%4d")" W "_GREEN_("%4d"),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue