From 14070e715aae7d19126c4f2a2d44c77e4cce362d Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 14 Jan 2020 13:13:42 +0100 Subject: [PATCH] libmemcached-1.0: fix subscripting on empty vector --- libmemcached-1.0/memcached.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmemcached-1.0/memcached.hpp b/libmemcached-1.0/memcached.hpp index 6500c0ab..9e3051c4 100644 --- a/libmemcached-1.0/memcached.hpp +++ b/libmemcached-1.0/memcached.hpp @@ -399,7 +399,7 @@ public: { memcached_return_t rc= memcached_set(memc_, key.c_str(), key.length(), - &value[0], value.size(), + value.data(), value.size(), expiration, flags); return memcached_success(rc); } -- 2.30.2