From e56db8c985362ca298390da0ddc444456875f95a Mon Sep 17 00:00:00 2001 From: Michael Black Date: Sun, 8 Dec 2019 23:33:51 -0600 Subject: [PATCH] Fix cppcheck warnings in rigctl.c --- tests/rigctl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/rigctl.c b/tests/rigctl.c index 42d804938..b2f892a6f 100644 --- a/tests/rigctl.c +++ b/tests/rigctl.c @@ -151,7 +151,7 @@ int main(int argc, char *argv[]) int serial_rate = 0; char *civaddr = NULL; /* NULL means no need to set conf */ char conf_parms[MAXCONFLEN] = ""; - int interactive = 1; /* if no cmd on command line, switch to interactive */ + int interactive; /* if no cmd on command line, switch to interactive */ int prompt = 1; /* Print prompt in rigctl */ int vfo_mode = 0; /* vfo_mode = 0 means target VFO is 'currVFO' */ char send_cmd_term = '\r'; /* send_cmd termination char */ @@ -432,6 +432,9 @@ int main(int argc, char *argv[]) { interactive = 0; } + else { + interactive = 1; + } my_rig = rig_init(my_model);