Clean up cppcheck warning

pull/412/head
Michael Black W9MDB 2020-09-19 14:38:00 -05:00
rodzic 2362d2fe1c
commit 8d60a82f54
1 zmienionych plików z 1 dodań i 9 usunięć

Wyświetl plik

@ -699,6 +699,7 @@ const char *tentec2_get_info(RIG *rig)
/*
* protocol version
*/
buf[0] = 0;
firmware_len = 100;
retval = tentec_transaction(rig, "?V\r", 3, buf, &firmware_len);
@ -710,14 +711,5 @@ const char *tentec2_get_info(RIG *rig)
return NULL;
}
if (firmware_len < 100)
{
buf[firmware_len] = 0;
}
else
{
buf[0] = 0;
}
return buf;
}