Fix cppcheck warnings in spid.c

pull/155/head
Michael Black 2019-12-08 16:04:46 -06:00
rodzic 00572f9ae7
commit 6305ff4cd4
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6599353EC683404D
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -47,8 +47,6 @@ struct spid_rot2prog_priv_data
static int spid_rot_init(ROT *rot)
{
struct spid_rot2prog_priv_data *priv;
rig_debug(RIG_DEBUG_TRACE, "%s called\n", __func__);
if (!rot || !rot->caps)
@ -59,6 +57,8 @@ static int spid_rot_init(ROT *rot)
if (rot->caps->rot_model == ROT_MODEL_SPID_ROT2PROG ||
rot->caps->rot_model == ROT_MODEL_SPID_MD01_ROT2PROG)
{
struct spid_rot2prog_priv_data *priv;
priv = (struct spid_rot2prog_priv_data *)malloc(sizeof(struct
spid_rot2prog_priv_data));