Merge branch 'Xalloc_Cleanup' of cgzones/htop

This commit is contained in:
Daniel Lange
2020-10-20 10:23:47 +02:00
14 changed files with 84 additions and 72 deletions

2
htop.c
View File

@ -122,7 +122,7 @@ static CommandLineSettings parseArguments(int argc, char** argv) {
exit(0);
case 's':
assert(optarg); /* please clang analyzer, cause optarg can be NULL in the 'u' case */
if (strcmp(optarg, "help") == 0) {
if (String_eq(optarg, "help")) {
for (int j = 1; j < Platform_numberOfFields; j++) {
const char* name = Process_fields[j].name;
if (name) printf ("%s\n", name);