laforge has submitted this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/28301 )

Change subject: vty: command.c: Add assert
......................................................................

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
---
M src/vty/command.c
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  fixeria: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



diff --git a/src/vty/command.c b/src/vty/command.c
index 2a8942d..d7b8026 100644
--- a/src/vty/command.c
+++ b/src/vty/command.c
@@ -1092,6 +1092,7 @@
 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;
 }


--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/28301
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ia14f43142e7409f72eb9efd5c9131bea5eed6e82
Gerrit-Change-Number: 28301
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-MessageType: merged

Reply via email to