From f90046516ee0055075748da847c62f4ebb5ecd46 Mon Sep 17 00:00:00 2001 From: Michael Black Date: Mon, 16 Mar 2020 11:56:34 -0500 Subject: [PATCH] Fix cppcheck item in icom.c --- rigs/icom/icom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rigs/icom/icom.c b/rigs/icom/icom.c index f654f20d5..48f69b9eb 100644 --- a/rigs/icom/icom.c +++ b/rigs/icom/icom.c @@ -3662,7 +3662,6 @@ int icom_set_split_freq(RIG *rig, vfo_t vfo, freq_t tx_freq) // This eliminates VFO swapping and improves split operations if (priv->x25cmdfails == 0) { - int cmd, subcmd, freq_len; int satmode = 0; // retval not important here...only satmode=1 means anything rig_get_func(rig, RIG_VFO_CURR, RIG_FUNC_SATMODE, &satmode); @@ -3670,6 +3669,7 @@ int icom_set_split_freq(RIG *rig, vfo_t vfo, freq_t tx_freq) if (satmode == 0) // only worth trying if not in satmode { + int cmd, subcmd, freq_len; unsigned char freqbuf[32]; freq_len = priv->civ_731_mode ? 4 : 5; /*