Fix cppcheck warnings

pull/155/head
Michael Black 2019-12-24 15:48:36 -06:00
rodzic 6fe29ad942
commit 4e5e533248
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6599353EC683404D
3 zmienionych plików z 6 dodań i 1097 usunięć

Wyświetl plik

@ -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

Plik diff jest za duży Load Diff

Wyświetl plik

@ -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));
}
}
}
}