kopia lustrzana https://github.com/Hamlib/Hamlib
Also check the "name" parameter
Avoids a segfault if calling strtol(NULL, NULL, 0).pull/1729/head
rodzic
6dfa118dac
commit
0b68dc5885
|
@ -1386,6 +1386,10 @@ const struct confparams *HAMLIB_API rig_confparam_lookup(RIG *rig,
|
|||
|
||||
return NULL;
|
||||
}
|
||||
if (!name) {
|
||||
rig_debug(RIG_DEBUG_ERR, "%s: name is NULL\n", __func__);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* 0 returned for invalid format */
|
||||
token = strtol(name, NULL, 0);
|
||||
|
|
Ładowanie…
Reference in New Issue