[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. ec813ae57d872f9c67784
Library to control radio transceivers and receivers
Brought to you by:
n0nb
|
From: Michael B. <mdb...@us...> - 2021-04-12 14:31:36
|
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 ec813ae57d872f9c67784cd192385f3f2edb5ed1 (commit)
from 974d978eaad6ae1d8ebd582c0185a012d009b7a8 (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 ec813ae57d872f9c67784cd192385f3f2edb5ed1
Author: Mike Black W9MDB <mdb...@ya...>
Date: Mon Apr 12 09:31:10 2021 -0500
Fix cppcheck warning in flrig.c
diff --git a/rigs/dummy/flrig.c b/rigs/dummy/flrig.c
index 1e630571..fca7c0e6 100644
--- a/rigs/dummy/flrig.c
+++ b/rigs/dummy/flrig.c
@@ -1050,7 +1050,7 @@ static int flrig_close(RIG *rig)
*/
static int flrig_cleanup(RIG *rig)
{
- struct flrig_priv_data *priv = (struct flrig_priv_data *)rig->state.priv;
+ struct flrig_priv_data *priv;
rig_debug(RIG_DEBUG_TRACE, "%s\n", __func__);
@@ -1059,6 +1059,8 @@ static int flrig_cleanup(RIG *rig)
RETURNFUNC(-RIG_EINVAL);
}
+ priv = (struct flrig_priv_data *)rig->state.priv;
+
free(priv->ext_parms);
free(rig->state.priv);
-----------------------------------------------------------------------
Summary of changes:
rigs/dummy/flrig.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
hooks/post-receive
--
Hamlib -- Ham radio control libraries
|