From 2edf36f863c784fa129e928f97004545ece29bc1 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Sun, 1 Apr 2018 18:10:09 +0300 Subject: [PATCH] bytes: don't allocate NUL terminator Since bytes is used to encapsulate blobs, not strings, there's no need for a NUL terminator. It will never be passed to a function that expects a C string. Message-Id: <20180401151009.14108-1-avi@scylladb.com> --- bytes.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bytes.hh b/bytes.hh index a4ea9fd82b..7818490442 100644 --- a/bytes.hh +++ b/bytes.hh @@ -29,7 +29,7 @@ #include #include "utils/mutable_view.hh" -using bytes = basic_sstring; +using bytes = basic_sstring; using bytes_view = std::experimental::basic_string_view; using bytes_mutable_view = basic_mutable_view; using bytes_opt = std::experimental::optional;