From: Michael Wallner Date: Tue, 14 Jan 2020 12:13:42 +0000 (+0100) Subject: libmemcached-1.0: fix subscripting on empty vector X-Git-Tag: pre_cmake~43 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=14070e715aae7d19126c4f2a2d44c77e4cce362d;p=m6w6%2Flibmemcached libmemcached-1.0: fix subscripting on empty vector --- 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); }