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