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)
|
||||
{
|
||||
retval = -RIG_ENOMEM;
|
||||
|
||||
}
|
||||
|
||||
rig->state.priv = p;
|
||||
p->vfo_curr = RIG_VFO_NONE;
|
||||
else
|
||||
{
|
||||
rig->state.priv = p;
|
||||
p->vfo_curr = RIG_VFO_NONE;
|
||||
#ifdef HAVE_PTHREAD
|
||||
pthread_mutex_init(&p->mutex, NULL);
|
||||
pthread_mutex_init(&p->mutex, NULL);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
RETURNFUNC(retval);
|
||||
|
|
Ładowanie…
Reference in New Issue