summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--htop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/htop.c b/htop.c
index 5d0fa61c..003e3cd0 100644
--- a/htop.c
+++ b/htop.c
@@ -295,7 +295,7 @@ int main(int argc, char** argv) {
printVersionFlag();
break;
case 's':
- if (strcmp(optarg, "help")) {
+ if (strcmp(optarg, "help") == 0) {
for (int j = 1; j < LAST_PROCESSFIELD; j++)
printf ("%s\n", Process_fieldNames[j]);
exit(0);