From 1c75ed10a80c058bcbb5e4247226db4f6c63bb8c Mon Sep 17 00:00:00 2001 From: Fabian Eckermann Date: Tue, 26 Oct 2021 14:06:58 +0200 Subject: [PATCH] Initialize variable. --- srsue/src/stack/upper/nas_5g.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srsue/src/stack/upper/nas_5g.cc b/srsue/src/stack/upper/nas_5g.cc index 8353759a9..de5b72bd1 100644 --- a/srsue/src/stack/upper/nas_5g.cc +++ b/srsue/src/stack/upper/nas_5g.cc @@ -420,7 +420,7 @@ int nas_5g::send_security_mode_complete(const srsran::nas_5g::security_mode_comm modified_registration_request.requested_nssai_present = true; modified_registration_request.update_type_5gs_present = true; - s_nssai_t s_nssai; + s_nssai_t s_nssai{}; s_nssai.type = s_nssai_t::SST_type_::options::sst; s_nssai.sst = 1; modified_registration_request.requested_nssai.s_nssai_list = {s_nssai};