Change in osmo-bsc[master]: bsc_ctrl_commands: fix uninitialized value (mode)

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

osmith gerrit-no-reply at lists.osmocom.org
Thu Nov 4 09:06:37 UTC 2021


osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/26094 )

Change subject: bsc_ctrl_commands: fix uninitialized value (mode)
......................................................................

bsc_ctrl_commands: fix uninitialized value (mode)

Fixes: CID#240848
Change-Id: I571055b350d343318ef1ae469ae92475925d1910
---
M src/osmo-bsc/bsc_ctrl_commands.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  dexter: Looks good to me, approved



diff --git a/src/osmo-bsc/bsc_ctrl_commands.c b/src/osmo-bsc/bsc_ctrl_commands.c
index f379bd2..fb8bd0c 100644
--- a/src/osmo-bsc/bsc_ctrl_commands.c
+++ b/src/osmo-bsc/bsc_ctrl_commands.c
@@ -753,7 +753,7 @@
 static int set_bts_neighbor_list_mode(struct ctrl_cmd *cmd, void *data)
 {
 	struct gsm_bts *bts = cmd->node;
-	int mode;
+	int mode = NL_MODE_AUTOMATIC;
 
 	if (!strcmp(cmd->value, "automatic"))
 		mode = NL_MODE_AUTOMATIC;

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

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I571055b350d343318ef1ae469ae92475925d1910
Gerrit-Change-Number: 26094
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211104/6560cbb2/attachment.htm>


More information about the gerrit-log mailing list