mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-25 09:46:21 +00:00
fix(cmd): cmd_time: Avoid extra loop iterations for single option
This commit is contained in:
@@ -5356,6 +5356,8 @@ cmd_time(ProfWin* window, const char* const command, gchar** args)
|
|||||||
cons_bad_cmd_usage(command);
|
cons_bad_cmd_usage(command);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
if (!set_all)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if (!set_all && n == ARRAY_SIZE(time_prefs)) {
|
if (!set_all && n == ARRAY_SIZE(time_prefs)) {
|
||||||
cons_bad_cmd_usage(command);
|
cons_bad_cmd_usage(command);
|
||||||
|
|||||||
Reference in New Issue
Block a user