forked from github/server
bugfix erase_border - assert anpassen
This commit is contained in:
parent
7eaad89b31
commit
01ec35d68b
|
@ -177,7 +177,7 @@ erase_border(border * b)
|
||||||
if (bp->next==b) np = &bp->next;
|
if (bp->next==b) np = &bp->next;
|
||||||
hp = &(*hp)->nexthash;
|
hp = &(*hp)->nexthash;
|
||||||
}
|
}
|
||||||
assert((*np && *hp) || !"error: border is not registered");
|
assert(*hp!=NULL || !"error: border is not registered");
|
||||||
if (np!=NULL) *np = b->next;
|
if (np!=NULL) *np = b->next;
|
||||||
*hp = b->nexthash;
|
*hp = b->nexthash;
|
||||||
if (b->type->destroy) b->type->destroy(b);
|
if (b->type->destroy) b->type->destroy(b);
|
||||||
|
|
Loading…
Reference in New Issue