summaryrefslogtreecommitdiffstats
path: root/sharpd
diff options
context:
space:
mode:
authorHiroki Shirokura <slank.dev@gmail.com>2021-03-22 01:31:56 +0100
committerMark Stapp <mjs@voltanet.io>2021-06-02 16:24:48 +0200
commit1bda3e627de060ece571012041965faa389c33c5 (patch)
tree7783200098cc914b556746c69da1520947d06b25 /sharpd
parentlib: fix json style to camel-case instead of underscores (diff)
downloadfrr-1bda3e627de060ece571012041965faa389c33c5.tar.xz
frr-1bda3e627de060ece571012041965faa389c33c5.zip
*: use one line init instead of memset and format it
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
Diffstat (limited to 'sharpd')
-rw-r--r--sharpd/sharp_vty.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sharpd/sharp_vty.c b/sharpd/sharp_vty.c
index 58f6e3fe9..72bc7d16b 100644
--- a/sharpd/sharp_vty.c
+++ b/sharpd/sharp_vty.c
@@ -316,10 +316,9 @@ DEFPY (install_routes,
sg.r.backup_nhop_group.nexthop = bnhgc->nhg.nexthop;
}
} else if (seg6l_oif) {
- struct seg6local_context ctx;
+ struct seg6local_context ctx = {};
enum seg6local_action_t action;
- memset(&ctx, 0, sizeof(struct seg6local_context));
if (seg6l_enddx4) {
action = ZEBRA_SEG6_LOCAL_ACTION_END_DX4;
ctx.nh4 = seg6l_enddx4_nh4;