[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. 4bd024c2388d2c9c0693b
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <mdb...@us...> - 2020-07-03 13:05:31
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Hamlib -- Ham radio control libraries". The branch, master has been updated via 4bd024c2388d2c9c0693bfdd94a73c0369535161 (commit) from e31500842cedc1188908439dc1b999a2444e8a99 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 4bd024c2388d2c9c0693bfdd94a73c0369535161 Author: Michael Black W9MDB <mdb...@ya...> Date: Fri Jul 3 08:05:13 2020 -0500 Fix come valgrind errors diff --git a/dummy/netrigctl.c b/dummy/netrigctl.c index dad7d075..d8b5a116 100644 --- a/dummy/netrigctl.c +++ b/dummy/netrigctl.c @@ -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); diff --git a/rigs/icom/frame.c b/rigs/icom/frame.c index 3510dd12..bb91b2f9 100644 --- a/rigs/icom/frame.c +++ b/rigs/icom/frame.c @@ -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) diff --git a/src/misc.c b/src/misc.c index b715a998..ca9b48bd 100644 --- a/src/misc.c +++ b/src/misc.c @@ -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; } ----------------------------------------------------------------------- Summary of changes: dummy/netrigctl.c | 4 ++-- rigs/icom/frame.c | 2 ++ src/misc.c | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |