diff options
Diffstat (limited to 'zebra/zapi_msg.c')
| -rw-r--r-- | zebra/zapi_msg.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/zebra/zapi_msg.c b/zebra/zapi_msg.c index 235c06f177..4331487b8b 100644 --- a/zebra/zapi_msg.c +++ b/zebra/zapi_msg.c @@ -2701,10 +2701,9 @@ int zsend_srv6_manager_get_locator_chunk_response(struct zserv *client, vrf_id_t vrf_id, struct srv6_locator *loc) { - struct srv6_locator_chunk chunk; + struct srv6_locator_chunk chunk = {}; struct stream *s = stream_new(ZEBRA_MAX_PACKET_SIZ); - memset(&chunk, 0, sizeof(chunk)); strlcpy(chunk.locator_name, loc->name, sizeof(chunk.locator_name)); chunk.prefix = loc->prefix; chunk.block_bits_length = loc->block_bits_length; |
