Fix cppcheck warning in rc2800.c

pull/574/head
Michael Black W9MDB 2021-02-28 12:33:07 -06:00
rodzic 6ad5a072c8
commit 9fa3f59684
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -207,7 +207,7 @@ transaction_write:
retval = read_string(&rs->rotport, data, data_len, CR, strlen(CR));
// some models seem to echo -- so we'll check and read again if echoed
if (strcmp(data, cmdstr) == 0)
if (cmdstr && strcmp(data, cmdstr) == 0)
{
memset(data, 0, data_len);
retval = read_string(&rs->rotport, data, data_len, CR, strlen(CR));