command: removed range check from check_bool()
check_bool() accepts only "0" or "1". The range check is superfluous.
This commit is contained in:
parent
ece8c1347c
commit
4fa36a15bf
|
@ -192,12 +192,6 @@ check_bool(struct client *client, bool *value_r, const char *s)
|
|||
return false;
|
||||
}
|
||||
|
||||
if (value > UINT_MAX) {
|
||||
command_error(client, ACK_ERROR_ARG,
|
||||
"Number too large: %s", s);
|
||||
return false;
|
||||
}
|
||||
|
||||
*value_r = !!value;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue