From d07b043ee07caa5da9e93a5a2ca9165ff98f85d7 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 8 Sep 2011 04:47:48 +0000 Subject: [PATCH] Fix --sort-key=help --- htop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);