Fix adat.c 'rigctl -m 29001 -u' error

pull/224/head
Michael Black 2020-03-25 17:43:55 -05:00
rodzic 48a584cca4
commit c7abfb4927
1 zmienionych plików z 2 dodań i 6 usunięć

Wyświetl plik

@ -2636,7 +2636,7 @@ adat_priv_data_ptr adat_new_priv_data(RIG *pRig)
{
// Init Priv Data
pRig->state.priv = (adat_priv_data_ptr) calloc(sizeof(adat_priv_data_t), 1);
pPriv = pRig->state.priv = (adat_priv_data_ptr) calloc(sizeof(adat_priv_data_t), 1);
if (pRig->state.priv != NULL)
{
@ -2768,11 +2768,7 @@ int adat_init(RIG *pRig)
// Check Params
if (pRig == NULL)
{
nRC = -RIG_EARG;
}
else
if (pRig != NULL)
{
adat_priv_data_ptr pPriv = NULL;