summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gsm/lapd_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gsm/lapd_core.c b/src/gsm/lapd_core.c
index fd1e7097..fd163c83 100644
--- a/src/gsm/lapd_core.c
+++ b/src/gsm/lapd_core.c
@@ -158,7 +158,7 @@ static void lapd_dl_flush_hist(struct lapd_datalink *dl)
{
unsigned int i;
- if (!dl->range_hist)
+ if (!dl->range_hist || !dl->tx_hist)
return;
for (i = 0; i < dl->range_hist; i++) {