mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Apply suggestions from code review
Co-authored-by: BenBE <BenBE@geshi.org>
This commit is contained in:
2
Action.c
2
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 {
|
||||
|
Reference in New Issue
Block a user