on master help sign in
mk_wcwidth.c: nit
a247079Jonathan Daugherty
cbits/mk_wcwidth.c+3−5
@@ -281,11 +281,9 @@ int vty_init_custom_table(int size)
281// are not in bounds for the table.
281// are not in bounds for the table.
282int vty_set_custom_table_range(uint32_t start, uint32_t size, uint8_t width)
282int vty_set_custom_table_range(uint32_t start, uint32_t size, uint8_t width)
283{
283{
284− if (custom_table == NULL) {
284+ if ((custom_table == NULL) ||
285− return 1;
286− } else if ((start + size - 1) >= custom_table_size) {
285+ ((start + size - 1) >= custom_table_size) ||
287− return 1;
288− } else if (custom_table_ready) {
286+ custom_table_ready) {
289 return 1;
287 return 1;
290 } else {
288 } else {
291 memset(custom_table + start, (uint8_t) width, size);
289 memset(custom_table + start, (uint8_t) width, size);