buffer.c:gwbuf_consume: rval may also be NULL, thus, added that to assert condition.

This commit is contained in:
VilhoRaatikka
2014-09-11 15:27:31 +03:00
parent 0a468a910b
commit 30c52677b0

View File

@ -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;
} }