Commit 4fa36a15 authored by Max Kellermann's avatar Max Kellermann

command: removed range check from check_bool()

check_bool() accepts only "0" or "1". The range check is superfluous.
parent ece8c134
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment