diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2012-01-29 23:51:36 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2012-01-29 23:51:36 +0000 |
commit | ff8d54c2219dfe7fea3ee4445348c004274ce60e (patch) | |
tree | 620093b45b94bc01b418b2cb21b01e5ff17ee759 /htop.c | |
parent | 8b73d11ac68565d458e4942c1bd9b2f119565489 (diff) |
Extra check if Process_getAffinity fails.
I could not reproduce the crash in current SVN
(I've been adding checks for problems like this),
but the sanity check looks correct.
Thanks to Cybjit. Closes #3481053.
Diffstat (limited to 'htop.c')
-rw-r--r-- | htop.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |