Fix cppcheck warnings in elecraft.c

pull/155/head
Michael Black 2019-12-07 15:40:43 -06:00
rodzic 60b5b78b83
commit a6ba2bc198
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6599353EC683404D
1 zmienionych plików z 1 dodań i 6 usunięć

Wyświetl plik

@ -96,11 +96,6 @@ int elecraft_open(RIG *rig)
rig_debug(RIG_DEBUG_VERBOSE, "%s called, rig version=%s\n", __func__,
rig->caps->version);
if (!rig)
{
return -RIG_EINVAL;
}
int err;
char id[KENWOOD_MAX_BUF_LEN];
@ -378,7 +373,7 @@ int elecraft_get_firmware_revision_level(RIG *rig, const char *cmd,
bufptr += strlen(cmd);
/* Skip leading zero(s) as the revision number has the format of: "04.67" */
while (bufptr && *bufptr == '0') { bufptr++; }
while (*bufptr == '0') { bufptr++; }
/* Copy out */
strncpy(fw_rev, bufptr, fw_rev_sz - 1);