mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 05:03:40 +00:00
lib: init new bitfield word after realloc
Realloc doesn't init - ensure a newly-allocated word is inited. Signed-off-by: Mark Stapp <mjs@labn.net>
This commit is contained in:
parent
f8755d7f86
commit
cad880c2df
@ -116,6 +116,7 @@ DECLARE_MTYPE(BITFIELD);
|
||||
(v).m = (v).m + 1; \
|
||||
(v).data = XREALLOC(MTYPE_BITFIELD, (v).data, \
|
||||
(v).m * sizeof(word_t)); \
|
||||
(v).data[(v).m - 1] = 0; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user