From 079149e45194df6160eb691a58c996f0231d9b74 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Thu, 16 Jun 2022 17:08:34 +0200 Subject: 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 --- src/vty/command.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.3-59-g8ed1b