From 59ef15b2ad6037f40d7fe4207b2b59dd11b14b8b Mon Sep 17 00:00:00 2001 From: Erdem Ersoy Date: Fri, 30 Oct 2020 19:12:17 +0300 Subject: Fix segmentation fault when column name is NULL. So, some columns (ex: SECATTR) can be sortable now. --- ColumnsPanel.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'ColumnsPanel.c') 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); -- cgit v1.2.3