kopia lustrzana https://github.com/Hamlib/Hamlib
Fix cppcheck warnings
rodzic
6fe29ad942
commit
4e5e533248
|
@ -121,6 +121,8 @@ static struct option long_options[] =
|
|||
/* variable for readline support */
|
||||
#ifdef HAVE_LIBREADLINE
|
||||
static const int have_rl = 1;
|
||||
#else
|
||||
static const int have_rl = 0;
|
||||
#endif
|
||||
|
||||
|
||||
|
|
1095
tests/rigctld.c
1095
tests/rigctld.c
Plik diff jest za duży
Load Diff
|
@ -1448,9 +1448,11 @@ int rotctl_parse(ROT *my_rot, FILE *fin, FILE *fout, char *argv[], int argc,
|
|||
}
|
||||
else
|
||||
{
|
||||
if (cmd_entry != NULL && cmd_entry->name != NULL)
|
||||
if (cmd_entry != NULL)
|
||||
{
|
||||
fprintf(fout, "%s: error = %s\n", cmd_entry->name, rigerror(retcode));
|
||||
if (cmd_entry->name != NULL) {
|
||||
fprintf(fout, "%s: error = %s\n", cmd_entry->name, rigerror(retcode));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue