0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-12 22:28:44 +00:00

Nest: Assumption in rt-show for not-so-intuitive invariant.

This commit is contained in:
Maria Matejka 2019-08-17 08:59:06 +02:00
parent c576a7e4af
commit ad33995536

View File

@ -106,6 +106,12 @@ rt_show_net(struct cli *c, net *n, struct rt_show_data *d)
byte ia[NET_MAX_TEXT_LENGTH+1];
struct ea_list *tmpa;
struct channel *ec = d->tab->export_channel;
/* The Clang static analyzer complains that ec may be NULL.
* It should be ensured to be not NULL by rt_show_prepare_tables() */
if (d->export_mode)
ASSUME(ec);
int first = 1;
int pass = 0;