kopia lustrzana https://github.com/Hamlib/Hamlib
Quell clang warning from optoscan.c
clang warned that lvl_len could be used unitialized in a call to rig_debug. Initialze lvl_len to 0 as its assignement is inside an if conditional. Also reported by Greg Troxel.libusb-1-0
rodzic
c0a77e72a6
commit
c26b893498
|
@ -423,7 +423,7 @@ int optoscan_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
|
|||
{
|
||||
struct optostat status_block;
|
||||
unsigned char lvlbuf[MAXFRAMELEN];
|
||||
int lvl_len;
|
||||
int lvl_len = 0;
|
||||
int lvl_cn, lvl_sc; /* Command Number, Subcommand */
|
||||
int icom_val;
|
||||
int cmdhead;
|
||||
|
|
Ładowanie…
Reference in New Issue