Fix come valgrind errors

pull/345/head
Michael Black W9MDB 2020-07-03 08:05:13 -05:00
rodzic e31500842c
commit 4bd024c238
3 zmienionych plików z 6 dodań i 3 usunięć

Wyświetl plik

@ -629,8 +629,8 @@ static int netrigctl_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
char vfotmp[16];
#endif
rig_debug(RIG_DEBUG_VERBOSE, "%s called, vfo=%s, freq=%.0f\n", __func__,
rig_strvfo(vfo), *freq);
rig_debug(RIG_DEBUG_VERBOSE, "%s called, vfo=%s\n", __func__,
rig_strvfo(vfo));
ret = netrigctl_vfostr(rig, vfostr, sizeof(vfostr), vfo);

Wyświetl plik

@ -115,6 +115,7 @@ int icom_one_transaction(RIG *rig, int cmd, int subcmd,
int frm_len, retval;
int ctrl_id;
sendbuf[0] = buf[0] = 0;
rs = &rig->state;
priv = (struct icom_priv_data *)rs->priv;
priv_caps = (struct icom_priv_caps *)rig->caps->priv;
@ -232,6 +233,7 @@ int icom_one_transaction(RIG *rig, int cmd, int subcmd,
* FIXME: handle pading/collisions
* ACKFRMLEN is the smallest frame we can expect from the rig
*/
buf[0] = 0;
frm_len = read_icom_frame(&rs->rigport, buf, sizeof(buf));
if (memcmp(buf, sendbuf, frm_len) == 0 && priv->serial_USB_echo_off)

Wyświetl plik

@ -1292,7 +1292,8 @@ double HAMLIB_API elapsed_ms(struct timespec *start, int option)
case HAMLIB_ELAPSED_INVALIDATE:
clock_gettime(CLOCK_REALTIME, start);
start->tv_sec -= 3600;
stop = *start;
start->tv_sec -= 10; // ten seconds should be more than enough
break;
}