kopia lustrzana https://github.com/Hamlib/Hamlib
Clean up cppcheck warning
rodzic
2362d2fe1c
commit
8d60a82f54
|
@ -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;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue