buffer.c:gwbuf_consume: rval may also be NULL, thus, added that to assert condition.
This commit is contained in:
@ -318,11 +318,11 @@ GWBUF *rval = head;
|
|||||||
rval = head->next;
|
rval = head->next;
|
||||||
if (head->next)
|
if (head->next)
|
||||||
head->next->tail = head->tail;
|
head->next->tail = head->tail;
|
||||||
|
|
||||||
gwbuf_free(head);
|
gwbuf_free(head);
|
||||||
}
|
}
|
||||||
|
|
||||||
ss_dassert(rval->end > rval->start);
|
ss_dassert(rval == NULL || (rval->end > rval->start));
|
||||||
|
|
||||||
return rval;
|
return rval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user