Fix cppcheck warnings in rigctl_parse.c

This commit is contained in:
Michael Black 2019-12-19 11:55:14 -06:00
parent 776e21017b
commit d81d60dfc1
No known key found for this signature in database
GPG Key ID: 6599353EC683404D

View File

@ -614,10 +614,10 @@ int rigctl_parse(RIG *my_rig, FILE *fin, FILE *fout, char *argv[], int argc,
/* cmd, internal, rigctld */
if (!(interactive && prompt && have_rl))
{
static int last_was_ret = 1;
if (interactive)
{
static int last_was_ret = 1;
if (prompt)
{
fprintf_flush(fout, "\nRig command: ");