summaryrefslogtreecommitdiffstats
path: root/htop.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2020-10-20 10:23:47 +0200
committerDaniel Lange <DLange@git.local>2020-10-20 10:23:47 +0200
commit0ea18a6edbbf97c7bab21bb2aab40cf8213858e3 (patch)
tree2a59ddc7ac580630f8d7088664b08b99f0761852 /htop.c
parent9f1a9ab2c2d5984887f5b821afd34a8480790877 (diff)
parent4c66eb6d4cbdddc658e5f0274d8130155c6013f1 (diff)
Merge branch 'Xalloc_Cleanup' of cgzones/htop
Diffstat (limited to 'htop.c')
-rw-r--r--htop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/htop.c b/htop.c
index 8ff2baaf..e4d437b9 100644
--- a/htop.c
+++ b/htop.c
@@ -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);

© 2014-2024 Faster IT GmbH | imprint | privacy policy