Fix cppcheck warning in uniden.c

pull/174/head
Michael Black 2020-01-11 23:26:16 -06:00
rodzic 0747d8a217
commit ebb32d00b5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6599353EC683404D
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -229,7 +229,8 @@ transaction_write:
#endif
/* Special case for SQuelch */
if (replystr && !memcmp(cmdstr, "SQ", 2) && (replystr[0] == '-' || replystr[0] == '+'))
if (replystr && !memcmp(cmdstr, "SQ", 2) && (replystr[0] == '-'
|| replystr[0] == '+'))
{
retval = RIG_OK;
goto transaction_quit;
@ -672,7 +673,7 @@ int uniden_set_channel(RIG *rig, const channel_t *chan)
return ret;
}
if (chan->vfo == RIG_VFO_MEM && rig->caps->chan_desc_sz != 0)
if (rig->caps->chan_desc_sz != 0)
{
/* only BC780 BC250 BC785 */
cmd_len = sprintf(cmdbuf, "TA C %03d %s" EOM,