kopia lustrzana https://github.com/Hamlib/Hamlib
Fix cppcheck warning in rigsmtr.c
rodzic
475012771b
commit
17fb84044f
|
@ -428,20 +428,20 @@ void usage()
|
|||
|
||||
int set_conf_rig(RIG *rig, char *conf_parms)
|
||||
{
|
||||
char *p, *q, *n;
|
||||
char *p;
|
||||
int ret;
|
||||
|
||||
p = conf_parms;
|
||||
|
||||
while (p && *p != '\0')
|
||||
{
|
||||
char *q, *n = NULL;
|
||||
/* FIXME: left hand value of = cannot be null */
|
||||
q = strchr(p, '=');
|
||||
|
||||
if (!q)
|
||||
{
|
||||
return RIG_EINVAL;
|
||||
}
|
||||
|
||||
*q++ = '\0';
|
||||
n = strchr(q, ',');
|
||||
|
@ -450,6 +450,7 @@ int set_conf_rig(RIG *rig, char *conf_parms)
|
|||
{
|
||||
*n++ = '\0';
|
||||
}
|
||||
}
|
||||
|
||||
ret = rig_set_conf(rig, rig_token_lookup(rig, p), q);
|
||||
|
||||
|
@ -467,13 +468,14 @@ int set_conf_rig(RIG *rig, char *conf_parms)
|
|||
|
||||
int set_conf_rot(ROT *rot, char *conf_parms)
|
||||
{
|
||||
char *p, *q, *n = NULL;
|
||||
int ret;
|
||||
char *p;
|
||||
|
||||
p = conf_parms;
|
||||
|
||||
while (p && *p != '\0')
|
||||
{
|
||||
char *q, *n = NULL;
|
||||
int ret;
|
||||
/* FIXME: left hand value of = cannot be null */
|
||||
q = strchr(p, '=');
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue