aboutsummaryrefslogtreecommitdiff
path: root/src/buffer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.hpp')
-rw-r--r--src/buffer.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buffer.hpp b/src/buffer.hpp
index 310093f16e..9f1ea9124c 100644
--- a/src/buffer.hpp
+++ b/src/buffer.hpp
@@ -13,6 +13,8 @@
#include <assert.h>
#include <stdint.h>
+#define BUF_INIT {{0}}
+
struct Buf {
ZigList<char> list;
};