summaryrefslogtreecommitdiff
path: root/pathd/path_cli.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2021-09-10 14:23:49 -0400
committerGitHub <noreply@github.com>2021-09-10 14:23:49 -0400
commit5bdc0346dc1d9676c0599a2cd1800a0868da97eb (patch)
tree4b4969ab695246f8c3d5cdae5c3d7011c4bb0067 /pathd/path_cli.c
parent0d39b8f2f08ac5878163b30d4c27d171ce1a1ca8 (diff)
parent75fef2a4da15bb388c505cc788eed8fa1ca1beb5 (diff)
Merge pull request #9594 from donaldsharp/strict_prototypes
Strict prototypes
Diffstat (limited to 'pathd/path_cli.c')
-rw-r--r--pathd/path_cli.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/pathd/path_cli.c b/pathd/path_cli.c
index bd629a2b70..46242fd05a 100644
--- a/pathd/path_cli.c
+++ b/pathd/path_cli.c
@@ -352,7 +352,16 @@ static int segment_list_has_src_dst(
nb_cli_enqueue_change(vty, xpath, NB_OP_MODIFY,
"ipv6_adjacency");
node_src_id = adj_src_ipv6_str;
+ } else {
+ /*
+ * This is just to make the compiler happy about
+ * node_src_id not being initialized. This
+ * should never happen unless we change the cli
+ * function.
+ */
+ assert(!"We must have a adj_src_ipv4_str or a adj_src_ipv6_str");
}
+
/* addresses */
snprintf(xpath, XPATH_MAXLEN, "./segment[index='%s']/nai/local-address",
index_str);