kopia lustrzana https://github.com/Hamlib/Hamlib
Fix come valgrind errors
rodzic
e31500842c
commit
4bd024c238
|
@ -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);
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue