From 38de84cdc42818a25e9ff7933d5db120a23d5e2d Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 26 Oct 2020 13:46:30 +0100 Subject: [PATCH] tests: ms: Pass correct pointer in constructor instead of NULL The BTS field will be used in code paths after next patch changes, otherwise the test fails accessing the NULL pointer. Change-Id: I5098292bdafa9f4f70fef1a053b80a33deca722c --- tests/ms/MsTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ms/MsTest.cpp b/tests/ms/MsTest.cpp index 05b1da4b..8ee3024f 100644 --- a/tests/ms/MsTest.cpp +++ b/tests/ms/MsTest.cpp @@ -369,7 +369,7 @@ static void test_ms_storage() gprs_rlcmac_ul_tbf *ul_tbf; BTS the_bts; GprsMs *ms, *ms_tmp; - GprsMsStorage store(NULL); + GprsMsStorage store(&the_bts); printf("=== start %s ===\n", __func__);