libmemcached-1.0: fix subscripting on empty vector
authorMichael Wallner <mike@php.net>
Tue, 14 Jan 2020 12:13:42 +0000 (13:13 +0100)
committerMichael Wallner <mike@php.net>
Tue, 14 Jan 2020 12:13:42 +0000 (13:13 +0100)
libmemcached-1.0/memcached.hpp

index 6500c0abc2b98df44a3b7971284a309be3282676..9e3051c4d003cc62271f7bc4ad4a6f29df880da8 100644 (file)
@@ -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);
   }