vppinfra: make coverity happy with vec_set_len 51/23051/2
authorBenoît Ganne <bganne@cisco.com>
Tue, 22 Oct 2019 16:19:00 +0000 (18:19 +0200)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 31 Oct 2019 12:15:48 +0000 (12:15 +0000)
commitabe07c8a25a566fd5f7441503a1541b5421c1ad7
treecb61457d275236752c09932de2ebcbd9fd9514f9
parent952d4e7fb9fce28c36f8ff05a0a20ce528aa45f7
vppinfra: make coverity happy with vec_set_len

Coverity gets confused by ASSERT((l) <= vec_max_len(v)) when l is 0.

Type: fix

Change-Id: I247d7015b148233d8f195bcf41e9a047b7a21309
Signed-off-by: Benoît Ganne <bganne@cisco.com>
(cherry picked from commit 70d5d4fa09520bd5825b49960ae896beca3535e8)
src/vppinfra/vec_bootstrap.h