Skip to content

Commit

Permalink
Fix segfault on rigctl -m 2 -u
Browse files Browse the repository at this point in the history
  • Loading branch information
mdblack98 committed Mar 4, 2024
1 parent b9df1c7 commit 15a2b5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rigs/dummy/netrigctl.c
Expand Up @@ -863,6 +863,8 @@ rig_debug(RIG_DEBUG_ERR, "## %s\n", buf);
int level;
sscanf(p, "%d", &level);

rig->caps->parm_gran[i].step.s = 0;

if (RIG_PARM_IS_FLOAT(level))
{
double min, max, step;
Expand Down Expand Up @@ -2812,7 +2814,7 @@ struct rig_caps netrigctl_caps =
RIG_MODEL(RIG_MODEL_NETRIGCTL),
.model_name = "NET rigctl",
.mfg_name = "Hamlib",
.version = "20240226.0",
.version = "20240304.0",
.copyright = "LGPL",
.status = RIG_STATUS_STABLE,
.rig_type = RIG_TYPE_OTHER,
Expand Down

0 comments on commit 15a2b5a

Please sign in to comment.