@@ -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)
284− if (custom_table == NULL) {
284+ if ((custom_table == NULL) ||
286− } else if ((start + size - 1) >= custom_table_size) {
285+ ((start + size - 1) >= custom_table_size) ||
288− } else if (custom_table_ready) {
286+ custom_table_ready) {
289 return 1;
287 return 1;
291 memset(custom_table + start, (uint8_t) width, size);
289 memset(custom_table + start, (uint8_t) width, size);