kopia lustrzana https://github.com/Hamlib/Hamlib
Also check the "val" parameter in rig_set_conf()
Avoids a segfault in lower level functions that can more easily happen when using the bindings. Simmetric with rig_get_conf() via rig_get_conf2().pull/1790/head
rodzic
c3ec11e5f7
commit
ede84bfce4
|
@ -1477,7 +1477,7 @@ int HAMLIB_API rig_set_conf(RIG *rig, hamlib_token_t token, const char *val)
|
|||
{
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
||||
|
||||
if (!rig || !rig->caps)
|
||||
if (!rig || !rig->caps || !val)
|
||||
{
|
||||
return -RIG_EINVAL;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue