summaryrefslogtreecommitdiff
path: root/data_buffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'data_buffer.cpp')
-rw-r--r--data_buffer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/data_buffer.cpp b/data_buffer.cpp
index e691b97..33cb0b3 100644
--- a/data_buffer.cpp
+++ b/data_buffer.cpp
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: Unlicense
+ */
+
#include "data_buffer.h"
#include <cassert>
@@ -5,6 +8,7 @@
void DataBuffer::Expand(size_t new_size)
{
+ assert(buffer);
if (new_size <= buffer_size) {
return;
}