kopia lustrzana https://github.com/Hamlib/Hamlib
Fix cppcheck warnings
rodzic
17382c03c6
commit
0228614a17
|
@ -242,13 +242,16 @@ int anytone_init(RIG *rig)
|
||||||
if (p == NULL)
|
if (p == NULL)
|
||||||
{
|
{
|
||||||
retval = -RIG_ENOMEM;
|
retval = -RIG_ENOMEM;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
rig->state.priv = p;
|
{
|
||||||
p->vfo_curr = RIG_VFO_NONE;
|
rig->state.priv = p;
|
||||||
|
p->vfo_curr = RIG_VFO_NONE;
|
||||||
#ifdef HAVE_PTHREAD
|
#ifdef HAVE_PTHREAD
|
||||||
pthread_mutex_init(&p->mutex, NULL);
|
pthread_mutex_init(&p->mutex, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RETURNFUNC(retval);
|
RETURNFUNC(retval);
|
||||||
|
|
Ładowanie…
Reference in New Issue