diff options
author | Erdem Ersoy <erdemersoy@erdemersoy.net> | 2020-10-30 19:12:17 +0300 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2020-10-31 18:34:34 +0100 |
commit | 59ef15b2ad6037f40d7fe4207b2b59dd11b14b8b (patch) | |
tree | 20785b9da09c3f969b71f21bb96391b2882fa5cb /ColumnsPanel.c | |
parent | 6787c430977974c08eab6f3f15bb9a876aa415fa (diff) |
Fix segmentation fault when column name is NULL.
So, some columns (ex: SECATTR) can be sortable now.
Diffstat (limited to 'ColumnsPanel.c')
-rw-r--r-- | ColumnsPanel.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/ColumnsPanel.c b/ColumnsPanel.c index f8250197..36127bd5 100644 --- a/ColumnsPanel.c +++ b/ColumnsPanel.c @@ -135,15 +135,6 @@ ColumnsPanel* ColumnsPanel_new(Settings* settings) { return this; } -int ColumnsPanel_fieldNameToIndex(const char* name) { - for (int j = 1; j <= Platform_numberOfFields; j++) { - if (String_eq(name, Process_fields[j].name)) { - return j; - } - } - return -1; -} - void ColumnsPanel_update(Panel* super) { ColumnsPanel* this = (ColumnsPanel*) super; int size = Panel_size(super); |