aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openbsc/src/chan_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/chan_alloc.c b/openbsc/src/chan_alloc.c
index 7464aa96b..bd3ec85b2 100644
--- a/openbsc/src/chan_alloc.c
+++ b/openbsc/src/chan_alloc.c
@@ -213,7 +213,7 @@ struct gsm_lchan *lchan_alloc(struct gsm_bts *bts, enum gsm_chan_t type)
lchan->use_count = 0;
/* clear sapis */
- memset(lchan->sapis, 0, sizeof(lchan->sapis));
+ memset(lchan->sapis, 0, ARRAY_SIZE(lchan->sapis));
/* Configure the time and start it so it will be closed */
lchan->release_timer.cb = auto_release_channel;