kopia lustrzana https://github.com/Hamlib/Hamlib
Fix cppcheck warning in elektor304.c
rodzic
e6cf0be165
commit
2505c56ea1
|
@ -164,16 +164,16 @@ int elektor304_init(RIG *rig)
|
||||||
{
|
{
|
||||||
struct elektor304_priv_data *priv;
|
struct elektor304_priv_data *priv;
|
||||||
|
|
||||||
priv = (struct elektor304_priv_data *)malloc(sizeof(struct
|
rig->state.priv = (struct elektor304_priv_data *)malloc(sizeof(struct
|
||||||
elektor304_priv_data));
|
elektor304_priv_data));
|
||||||
|
|
||||||
if (!priv)
|
if (!rig->state.priv)
|
||||||
{
|
{
|
||||||
/* whoops! memory shortage! */
|
/* whoops! memory shortage! */
|
||||||
return -RIG_ENOMEM;
|
return -RIG_ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
rig->state.priv = (void *)priv;
|
priv = rig->state.priv;
|
||||||
|
|
||||||
priv->osc_freq = OSCFREQ;
|
priv->osc_freq = OSCFREQ;
|
||||||
priv->if_mix_freq = IFMIXFREQ;
|
priv->if_mix_freq = IFMIXFREQ;
|
||||||
|
|
Ładowanie…
Reference in New Issue