mk_wcwidth.c: nit

This commit is contained in:
Jonathan Daugherty 2020-03-05 11:06:01 -08:00
parent 5435e8f8b3
commit a247079058

View File

@ -281,11 +281,9 @@ int vty_init_custom_table(int size)
// are not in bounds for the table.
int vty_set_custom_table_range(uint32_t start, uint32_t size, uint8_t width)
{
if (custom_table == NULL) {
return 1;
} else if ((start + size - 1) >= custom_table_size) {
return 1;
} else if (custom_table_ready) {
if ((custom_table == NULL) ||
((start + size - 1) >= custom_table_size) ||
custom_table_ready) {
return 1;
} else {
memset(custom_table + start, (uint8_t) width, size);