Commit 38dfff8f authored by Niels Möller's avatar Niels Möller
Browse files

(do_remember_resource): Assert that resource is

non-NULL.

Rev: src/resource.c:1.24
parent d7aea26d
......@@ -141,6 +141,8 @@ do_remember_resource(struct resource_list *s,
CAST(concrete_resource_list, self, s);
struct resource_node *n;
assert(resource);
if (!self->super.super.alive)
{
werror("do_remember_resource: resource list is already dead.\n");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment