mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-17 16:48:43 +00:00
Nest: Assumption in rt-show for not-so-intuitive invariant.
This commit is contained in:
parent
a08853a269
commit
bbe49ae569
@ -104,6 +104,12 @@ rt_show_net(struct cli *c, net *n, struct rt_show_data *d)
|
|||||||
rte *e, *ee;
|
rte *e, *ee;
|
||||||
byte ia[NET_MAX_TEXT_LENGTH+1];
|
byte ia[NET_MAX_TEXT_LENGTH+1];
|
||||||
struct channel *ec = d->tab->export_channel;
|
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 first = 1;
|
||||||
int pass = 0;
|
int pass = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user