Skip to content

Commit

Permalink
Fix seg fault in Malachite open
Browse files Browse the repository at this point in the history
  • Loading branch information
mdblack98 committed Apr 4, 2021
1 parent bbc8e00 commit 2b104ba
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions rigs/kenwood/ts480.c
Original file line number Diff line number Diff line change
Expand Up @@ -928,17 +928,20 @@ const struct confparams malachite_cfg_parms[] =

int malachite_init(RIG *rig)
{

struct kenwood_priv_data *priv = rig->state.priv;
struct kenwood_priv_data *priv;
int retval;

ENTERFUNC;

retval = kenwood_init(rig);

if (retval != RIG_OK) { RETURNFUNC(retval); }
priv = rig->state.priv;

priv->no_id = 1; // the Malchite doesn't like the ID; verify cmd

return RIG_OK;
if (retval != RIG_OK) { RETURNFUNC(retval); }

RETURNFUNC(RIG_OK);
}

/*
Expand Down

0 comments on commit 2b104ba

Please sign in to comment.