summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--htop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/htop.c b/htop.c
index e2150a75..dda99c8f 100644
--- a/htop.c
+++ b/htop.c
@@ -772,6 +772,7 @@ int main(int argc, char** argv) {
break;
Affinity* affinity = Process_getAffinity((Process*) Panel_getSelected(panel));
+ if (!affinity) break;
Panel* affinityPanel = AffinityPanel_new(pl, affinity);
Affinity_delete(affinity);