msub_check_for_release(): Initialize msc_role_a_c

This fixes the following compiler error:

msub.c: In function ‘msub_fsm_active’:
msub.c:85:35: error: ‘msc_role_a_c’ may be used uninitialized in this function
[-Werror=maybe-uninitialized]
   || (msc_role_a_c && msc_role_a_c->ran->type == OSMO_RAT_EUTRAN_SGS)))
                       ~~~~~~~~~~~~^~~~~
msub.c:59:26: note: ‘msc_role_a_c’ was declared here
  struct msc_role_common *msc_role_a_c;
                          ^~~~~~~~~~~~

Change-Id: Id518dea77d01ed0518ca7cba6b1b363f1c8e6543
This commit is contained in:
Harald Welte 2019-05-09 10:28:43 +02:00
parent 880b950862
commit db6855c9f9
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ enum msub_fsm_event {
static void msub_check_for_release(struct osmo_fsm_inst *fi)
{
struct msub *msub = fi->priv;
struct msc_role_common *msc_role_a_c;
struct msc_role_common *msc_role_a_c = NULL;
enum msc_role role_idx;
int role_present[MSC_ROLES_COUNT] = {};
struct osmo_fsm_inst *child;