summaryrefslogtreecommitdiffstats
path: root/Action.c
diff options
context:
space:
mode:
authorNathan Scott <natoscott@users.noreply.github.com>2021-08-17 15:42:10 +1000
committerGitHub <noreply@github.com>2021-08-17 15:42:10 +1000
commitd5ff5c48a889c1eab6e3792d3f5ca1566cf05491 (patch)
tree0b7093afd5d7846f86b1e317c0022130ca66e42e /Action.c
parentc7f634ec218da6bdb3bab9e9cd6fa7b2df3fcea8 (diff)
Apply suggestions from code review
Co-authored-by: BenBE <BenBE@geshi.org>
Diffstat (limited to 'Action.c')
-rw-r--r--Action.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Action.c b/Action.c
index 6e804f68..a63b30e4 100644
--- a/Action.c
+++ b/Action.c
@@ -174,7 +174,7 @@ static Htop_Reaction actionSetSortColumn(State* st) {
char* name = NULL;
if (fields[i] >= LAST_PROCESSFIELD) {
DynamicColumn* column = Hashtable_get(dynamicColumns, fields[i]);
- if (column == NULL)
+ if (!column)
continue;
name = xStrdup(column->caption ? column->caption : column->name);
} else {

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