--- libaitsched/src/aitsched.c 2012/04/26 08:15:22 1.6.2.3 +++ libaitsched/src/aitsched.c 2012/05/03 15:05:09 1.6.2.4 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitsched.c,v 1.6.2.3 2012/04/26 08:15:22 misho Exp $ +* $Id: aitsched.c,v 1.6.2.4 2012/05/03 15:05:09 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -93,8 +93,7 @@ sched_SetErr(int eno, char *estr, ...) int schedRegisterHooks(sched_root_task_t * __restrict root) { - if (!root || (root->root_data.iov_base && root->root_data.iov_len)) - return -1; + assert(root); if (root->root_hooks.hook_root.fini) root->root_hooks.hook_root.fini(root, NULL);