diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-06-16 17:08:34 +0200 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2022-06-17 20:28:01 +0000 |
commit | 079149e45194df6160eb691a58c996f0231d9b74 (patch) | |
tree | 18763a0776f8eb269a59995fd7cec8ae072501c5 /src/vty | |
parent | 044f0cd64cc4da2a3eec73d6a6f6988fcf6122b2 (diff) |
vty: command.c: Add assert
a program being developed right now crashed at this point, without
providing any meaningful information on where did it crash.
Change-Id: Ia14f43142e7409f72eb9efd5c9131bea5eed6e82
Diffstat (limited to 'src/vty')
-rw-r--r-- | src/vty/command.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vty/command.c b/src/vty/command.c index 2a8942db..d7b8026f 100644 --- a/src/vty/command.c +++ b/src/vty/command.c @@ -1092,6 +1092,7 @@ static int config_write_host(struct vty *vty) static vector cmd_node_vector(vector v, enum node_type ntype) { struct cmd_node *cnode = vector_slot(v, ntype); + OSMO_ASSERT(cnode != NULL); return cnode->cmd_vector; } |