aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2022-06-16 17:08:34 +0200
committerlaforge <laforge@osmocom.org>2022-06-17 20:28:01 +0000
commit079149e45194df6160eb691a58c996f0231d9b74 (patch)
tree18763a0776f8eb269a59995fd7cec8ae072501c5
parentcosmetic tweak in Makefile.am (diff)
downloadlibosmocore-079149e45194df6160eb691a58c996f0231d9b74.tar.xz
libosmocore-079149e45194df6160eb691a58c996f0231d9b74.zip
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
-rw-r--r--src/vty/command.c1
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;
}