summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-12-24 16:46:50 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-12-24 16:46:50 +0100
commitc2faa45297d07aa717af3caa5adb2d397ebb5468 (patch)
treefc7f9435a8caf952e8928dcfb74e11eacea2eb21
parent933a1d8f6240355bf066963f7fa226eefb8f1e25 (diff)
proc: Do not reference a task port when allocation failedv0.9.git20221224
-rw-r--r--proc/mgt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/proc/mgt.c b/proc/mgt.c
index 67d74049..1170e361 100644
--- a/proc/mgt.c
+++ b/proc/mgt.c
@@ -1198,7 +1198,8 @@ add_tasks (task_t task)
if (!p)
{
p = new_proc (tasks[j]);
- set = 1;
+ if (p)
+ set = 1;
}
if (!foundp && tasks[j] == task)
foundp = p;