From 248d5e44a93d773119508e5bf4c363d1e5434342 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Sun, 17 Dec 2023 12:52:34 -0600 Subject: [PATCH] Fix cppcheck warning in newcat.c --- rigs/yaesu/newcat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index 4585cc06e..3a392bdf4 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -7565,7 +7565,7 @@ int newcat_get_trn(RIG *rig, int *trn) SNPRINTF(priv->cmd_str, sizeof(priv->cmd_str), "%s%c", command, cat_term); /* Get Auto Information */ - if (RIG_OK != (err = newcat_get_cmd(rig))) + if (RIG_OK != newcat_get_cmd(rig)) { // if we failed to get AI we turn it off and try again SNPRINTF(priv->cmd_str, sizeof(priv->cmd_str), "%s0%c", command, cat_term);