Skip to content
Snippets Groups Projects
Commit 80c90a0a authored by Moe Jette's avatar Moe Jette
Browse files

Test value of pointer before using it. was causing slurmd segfault on

fatal error.
parent ee83577a
No related branches found
No related tags found
No related merge requests found
......@@ -345,7 +345,7 @@ _fatal_cleanup(void *arg)
i = list_iterator_create(job->objs);
while((obj = list_next(i))) {
io = (struct io_info *) obj->arg;
if ((*obj->ops->writable)(obj))
if (obj->ops->writable && (*obj->ops->writable)(obj))
_write(obj, job->objs);
}
list_iterator_destroy(i);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment