From a13c671d75c6b94f302cc530e04101ff1715bccc Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Mon, 27 Nov 2017 17:58:04 +0100 Subject: cosmetic: explicitly init ho_ref start value The static ho_ref seems to be implicitly initialized to zero, but let's make it explicit for code readability. Change-Id: I00493bcb7ef3e38fb8e0077c60c5bac7199f1073 --- src/libbsc/handover_logic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libbsc/handover_logic.c b/src/libbsc/handover_logic.c index 684f5b04f..997ca9c21 100644 --- a/src/libbsc/handover_logic.c +++ b/src/libbsc/handover_logic.c @@ -93,7 +93,7 @@ int bsc_handover_start(struct gsm_lchan *old_lchan, struct gsm_bts *bts) { struct gsm_lchan *new_lchan; struct bsc_handover *ho; - static uint8_t ho_ref; + static uint8_t ho_ref = 0; int rc; /* don't attempt multiple handovers for the same lchan at -- cgit v1.2.3