kopia lustrzana https://github.com/Hamlib/Hamlib
Fix cppcheck warning in dttsp.c
rodzic
11263d691d
commit
3ec1cd707e
|
@ -481,16 +481,16 @@ int dttsp_init(RIG *rig)
|
||||||
const char *cmdpath;
|
const char *cmdpath;
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
priv = (struct dttsp_priv_data *)calloc(1, sizeof(struct dttsp_priv_data));
|
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
||||||
|
|
||||||
if (!priv)
|
rig->state.priv = (struct dttsp_priv_data *)calloc(1, sizeof(struct dttsp_priv_data));
|
||||||
|
|
||||||
|
if (!rig->state.priv)
|
||||||
{
|
{
|
||||||
return -RIG_ENOMEM;
|
return -RIG_ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
rig->state.priv = (void *)priv;
|
priv = rig->state.priv;
|
||||||
|
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
|
||||||
|
|
||||||
priv->tuner = NULL;
|
priv->tuner = NULL;
|
||||||
priv->tuner_model = RIG_MODEL_DUMMY;
|
priv->tuner_model = RIG_MODEL_DUMMY;
|
||||||
|
|
Ładowanie…
Reference in New Issue