Skip to content

Commit

Permalink
Fix cppcheck warning in gemini.c
Browse files Browse the repository at this point in the history
  • Loading branch information
mdblack98 committed Sep 30, 2023
1 parent f55d0fc commit d49543f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions amplifiers/gemini/gemini.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ int gemini_transaction(AMP *amp, const char *cmd, char *response,

struct amp_state *rs;
int err;
int len = 0;

rig_debug(RIG_DEBUG_VERBOSE, "%s called, cmd=%s\n", __func__, cmd);

Expand All @@ -104,7 +103,7 @@ int gemini_transaction(AMP *amp, const char *cmd, char *response,
if (response) // if response expected get it
{
response[0] = 0;
len = read_string(&rs->ampport, (unsigned char *) response, response_len, "\n",
int len = read_string(&rs->ampport, (unsigned char *) response, response_len, "\n",
1, 0, 1);

if (len < 0)
Expand Down

0 comments on commit d49543f

Please sign in to comment.