kopia lustrzana https://github.com/Hamlib/Hamlib
Fix cppcheck warning in rigsmtr.c
rodzic
360b2c7c1e
commit
475012771b
|
@ -467,7 +467,7 @@ int set_conf_rig(RIG *rig, char *conf_parms)
|
||||||
|
|
||||||
int set_conf_rot(ROT *rot, char *conf_parms)
|
int set_conf_rot(ROT *rot, char *conf_parms)
|
||||||
{
|
{
|
||||||
char *p, *q, *n;
|
char *p, *q, *n = NULL;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
p = conf_parms;
|
p = conf_parms;
|
||||||
|
@ -480,13 +480,13 @@ int set_conf_rot(ROT *rot, char *conf_parms)
|
||||||
if (q)
|
if (q)
|
||||||
{
|
{
|
||||||
*q++ = '\0';
|
*q++ = '\0';
|
||||||
}
|
|
||||||
|
|
||||||
n = strchr(q, ',');
|
n = strchr(q, ',');
|
||||||
|
|
||||||
if (n)
|
if (n)
|
||||||
{
|
{
|
||||||
*n++ = '\0';
|
*n++ = '\0';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = rot_set_conf(rot, rot_token_lookup(rot, p), q);
|
ret = rot_set_conf(rot, rot_token_lookup(rot, p), q);
|
||||||
|
|
Ładowanie…
Reference in New Issue