diff options
| author | Hiroki Shirokura <slank.dev@gmail.com> | 2021-03-22 00:31:56 +0000 |
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2021-06-02 10:24:48 -0400 |
| commit | 1bda3e627de060ece571012041965faa389c33c5 (patch) | |
| tree | 7783200098cc914b556746c69da1520947d06b25 /zebra/zapi_msg.c | |
| parent | 326591dcdbaf892b5f5e57d5a5d5d80d2e8937ab (diff) | |
*: use one line init instead of memset and format it
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
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; |
