]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixed a harmless warning in production build
authorMaria Matejka <mq@ucw.cz>
Fri, 1 May 2020 13:41:42 +0000 (15:41 +0200)
committerMaria Matejka <mq@ucw.cz>
Fri, 1 May 2020 13:41:42 +0000 (15:41 +0200)
nest/rt-show.c

index bd0df9ee678010c0adda0d71b8dddae9f74cb6b0..7691878dd6dcfb6887ae29abe78dfc98bd99ba9c 100644 (file)
@@ -107,8 +107,7 @@ rt_show_net(struct cli *c, net *n, struct rt_show_data *d)
 
   /* 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);
+  ASSUME(!d->export_mode || ec);
 
   int first = 1;
   int pass = 0;