htop/linux
Christian Göttsche ad3acfc847 Handle Panel_getSelected() returning NULL
Found by compiling with LTO:

    ColumnsPanel.c: In function ‘ColumnsPanel_eventHandler’:
    ColumnsPanel.c:46:59: error: potential null pointer dereference [-Werror=null-dereference]
       46 |             ((ListItem*)Panel_getSelected(super))->moving = this->moving;
          |                                                           ^
    AvailableColumnsPanel.c: In function ‘AvailableColumnsPanel_eventHandler’:
    AvailableColumnsPanel.c:31:8: error: potential null pointer dereference [-Werror=null-dereference]
       31 |    int key = ((ListItem*) Panel_getSelected(super))->key;
          |        ^
    AvailableMetersPanel.c: In function ‘AvailableMetersPanel_eventHandler’:
    AvailableMetersPanel.c:40:24: error: potential null pointer dereference [-Werror=null-dereference]
       40 |    int param = selected->key & 0xff;
          |                        ^
    linux/IOPriorityPanel.c: In function ‘IOPriorityPanel_getIOPriority’:
    linux/IOPriorityPanel.c:37:11: error: potential null pointer dereference [-Werror=null-dereference]
       37 |    return (IOPriority) ( ((ListItem*) Panel_getSelected(this))->key );
          |           ^
2020-10-06 11:17:23 +02:00
..
Battery.c Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
Battery.h Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
IOPriority.h Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
IOPriorityPanel.c Handle Panel_getSelected() returning NULL 2020-10-06 11:17:23 +02:00
IOPriorityPanel.h Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
LinuxCRT.c Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
LinuxCRT.h Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
LinuxProcess.c Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
LinuxProcess.h Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
LinuxProcessList.c Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
LinuxProcessList.h Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
Platform.c Merge branch 'update-license-and-copyright-info' 2020-10-06 10:27:38 +11:00
Platform.h Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
PressureStallMeter.c Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00
PressureStallMeter.h Update License consistently to GPLv2 as per COPYING file 2020-10-05 10:13:12 +02:00