Fix cppcheck sylte

pull/1354/head
Mike Black W9MDB 2023-08-02 23:09:37 -05:00
rodzic 82c169527d
commit 10f88807e6
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -245,10 +245,9 @@ static int sdrsharp_transaction(RIG *rig, char *cmd, char *value,
if (value)
{
read_transaction(rig, xml, sizeof(xml)); // this might time out -- that's OK
strncpy(value, xml, value_len);
}
if (value) { strncpy(value, xml, value_len); }
}
while (((value && strlen(value) == 0))
&& retry--); // we'll do retries if needed
@ -486,10 +485,12 @@ static int sdrsharp_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
RETURNFUNC2(-RIG_EINVAL);
}
#if 0
if (vfo == RIG_VFO_CURR)
{
vfo = rig->state.current_vfo;
}
#endif
SNPRINTF(cmd, sizeof(cmd), "F %.0lf\n", freq);