kopia lustrzana https://github.com/Hamlib/Hamlib
Add check for possible NULL in frame.c
rodzic
618cf90145
commit
3affc1066c
|
@ -137,6 +137,10 @@ int icom_one_transaction(RIG *rig, int cmd, int subcmd,
|
|||
int ctrl_id;
|
||||
|
||||
ENTERFUNC;
|
||||
if (data == NULL)
|
||||
{
|
||||
RETURNFUNC(RIG_EINTERNAL);
|
||||
}
|
||||
memset(buf, 0, 200);
|
||||
memset(sendbuf, 0, MAXFRAMELEN);
|
||||
rs = &rig->state;
|
||||
|
|
Ładowanie…
Reference in New Issue