diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2016-12-16 08:12:54 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2016-12-16 20:42:01 +0100 |
commit | 0e64d123fd50cb8c45ad32a209f10173bdb65c4d (patch) | |
tree | 3308779eccc0d485d6b16a47059f6d001c86b29b /lib | |
parent | lib: parser: reorder bison incarnations (diff) | |
download | frr-0e64d123fd50cb8c45ad32a209f10173bdb65c4d.tar.xz frr-0e64d123fd50cb8c45ad32a209f10173bdb65c4d.zip |
bgpd: shuffle qobj_init()
bgp_master_init is called first thing in main(), so we need to wedge a
qobj_init() call in there... this needs some improvement...
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/qobj.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/qobj.c b/lib/qobj.c index aeae52e02..8a386d248 100644 --- a/lib/qobj.c +++ b/lib/qobj.c @@ -73,7 +73,8 @@ void *qobj_get_typed(uint64_t id, struct qobj_nodetype *type) void qobj_init (void) { - nodes = hash_create (qobj_key, qobj_cmp); + if (!nodes) + nodes = hash_create (qobj_key, qobj_cmp); } void qobj_finish (void) |