Fix rig_get_ant NULL check

pull/691/head
Mikael Nousiainen 2021-05-05 18:23:02 +03:00
rodzic 7f60e1fcb0
commit 9e8ef6dc9e
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -5087,7 +5087,7 @@ int HAMLIB_API rig_get_ant(RIG *rig, vfo_t vfo, ant_t ant, value_t *option,
RETURNFUNC(-RIG_EIO);
}
if (ant_curr)
if (ant_curr == NULL)
{
RETURNFUNC(-RIG_EINVAL);
}