tests: add missing qobj_init() call

This was SEGV'ing the test in bgp_master_init() since QOBJ_REG was used
without qobj_init() being called first.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
David Lamparter 2016-12-16 00:01:20 +01:00
parent 7ef290efa3
commit 46715ff034

View File

@ -1331,6 +1331,7 @@ int
main (void)
{
int i = 0;
qobj_init ();
bgp_master_init ();
master = bm->master;
bgp_option_set (BGP_OPT_NO_LISTEN);