e1_recorder: Fix potential null-dereference
Fixes: CID#307523: Dereference null return value (NULL_RETURNS)
Change-Id: I481f0695f971f5cd2e77b8c9c62d423a70e0840d
diff --git a/src/e1_recorder.c b/src/e1_recorder.c
index 996ede4..cc21bc0 100644
--- a/src/e1_recorder.c
+++ b/src/e1_recorder.c
@@ -77,6 +77,7 @@
if (rline->mirror.enabled) {
struct e1inp_line *other_line =
e1inp_line_find(rline->mirror.line_nr);
+ OSMO_ASSERT(other_line);
struct e1inp_ts *other_ts;
other_ts = &other_line->ts[ts->num-1];
if (!other_ts) {