From e395b7561927962018b8e6d42ae84e5e76cb02d0 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 26 Oct 2021 14:31:27 +0200 Subject: [PATCH] hnb-test: Fix rc var may be used uninitialized Warning observed compiling with gcc 11.1.0. Change-Id: I6ca53dd57572338f15971633441da895843a164d --- src/tests/hnb-test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tests/hnb-test.c b/src/tests/hnb-test.c index b6128140..344bac58 100644 --- a/src/tests/hnb-test.c +++ b/src/tests/hnb-test.c @@ -496,6 +496,7 @@ int hnb_test_hnbap_rx(struct hnb_test *hnb, struct msgb *msg) rc = hnb_test_rx_ue_register_acc(hnb, &pdu->choice.successfulOutcome.value); break; default: + rc = -ENOSPC; break; }