type, table);
assert(nelem > 0);
- elem = NULL;
try_again:
+ elem = NULL;
if (ntries++ > max_retries) {
struct wqt_elem *tmp;
if (table->used_elem + nelem >= table_size)
* WQS we're unlinking, or to an invalid object:
* no need to invalidate it
*/
- *wq_setid = right->sl_set_id.id;
+ *wq_setid = right ? right->sl_set_id.id : 0;
lt_invalidate(parent);
wqdbg_v("S1, L");
return left ? WQ_ITERATE_UNLINKED : WQ_ITERATE_INVALID;
* WQS we're unlinking, or to an invalid object:
* no need to invalidate it
*/
- *wq_setid = left->sl_set_id.id;
+ *wq_setid = left ? left->sl_set_id.id : 0;
lt_invalidate(parent);
wqdbg_v("S1, R");
return right ? WQ_ITERATE_UNLINKED : WQ_ITERATE_INVALID;