mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 03:52:49 -05:00
Add some more miscellaneous asserts.
These clarify matters for static checkers (not to mention humans), and seem inexpensive enough not to worry about adding.
This commit is contained in:
@ -377,6 +377,7 @@ static void gprefs_from_str(const char *str,
|
||||
*/
|
||||
while (n < nvals) {
|
||||
for (i = 0; i < nvals; i++) {
|
||||
assert(mapping[i].v >= 0);
|
||||
assert(mapping[i].v < 32);
|
||||
|
||||
if (!(seen & (1 << mapping[i].v))) {
|
||||
|
Reference in New Issue
Block a user