From: Date: Wed, 20 Feb 2008 21:43:51 +0000 (-0800) Subject: Test for 0-length data, which works with the server. X-Git-Tag: _20~6 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=68de90dbdf91650ad3ed6ac4badde97cbad666ce;p=m6w6%2Flibmemcached Test for 0-length data, which works with the server. --- diff --git a/tests/function.c b/tests/function.c index 1312c36d..6bbaa40c 100644 --- a/tests/function.c +++ b/tests/function.c @@ -1814,7 +1814,7 @@ uint8_t user_supplied_bug14(memcached_st *memc) for (x= 0; x < value_length; x++) value[x] = (char) (x % 127); - for (current_length= 1; current_length < value_length; current_length++) + for (current_length= 0; current_length < value_length; current_length++) { rc= memcached_set(memc, key, strlen(key), value, current_length,