From e5f12e9750df3401a175936bcb6e881b84d34266 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 30 Nov 2017 10:24:51 -0800 Subject: [PATCH] ircd::buffer: Fix assertion for empty buffer. --- include/ircd/buffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ircd/buffer.h b/include/ircd/buffer.h index 6d8e61b7b..f0fcfde7f 100644 --- a/include/ircd/buffer.h +++ b/include/ircd/buffer.h @@ -540,7 +540,7 @@ template std::ostream & ircd::buffer::operator<<(std::ostream &s, const buffer &buffer) { - assert(!null(buffer)); + assert(!null(buffer) || get<1>(buffer) == nullptr); s.write(data(buffer), size(buffer)); return s; }