diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2020-11-24 03:21:44 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2020-11-24 03:21:44 +0100 |
commit | c9ae81656f97bcc55910e80b6f00d3ee9383d848 (patch) | |
tree | eab1d953cc77e3644fe6f5d0bdae9e088210b98d /proto/ospf | |
parent | db2d29073acfd4086fca18ba43a5ed6baccaa8ad (diff) |
Some minor sl_allocz() cleanups
Diffstat (limited to 'proto/ospf')
-rw-r--r-- | proto/ospf/topology.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c index ea7176fd..52c2a0ce 100644 --- a/proto/ospf/topology.c +++ b/proto/ospf/topology.c @@ -2108,9 +2108,7 @@ ospf_hash_get(struct top_graph *f, u32 domain, u32 lsa, u32 rtr, u32 type) if (e) return e; - e = sl_alloc(f->hash_slab); - bzero(e, sizeof(struct top_hash_entry)); - + e = sl_allocz(f->hash_slab); e->color = OUTSPF; e->dist = LSINFINITY; e->lsa.type_raw = type; |