X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fmemcached_get.c;h=a01beee62e954f57235466c05bf9ce885207595f;hb=6728560401a22513074f2f7c4b2060abc3fbea98;hp=a84ef4f2a12c2416c49748e93580f61e875bc779;hpb=6f42f1c77da54da0b19274cc0d6b6c9745e40de0;p=m6w6%2Flibmemcached diff --git a/libmemcached/memcached_get.c b/libmemcached/memcached_get.c index a84ef4f2..a01beee6 100644 --- a/libmemcached/memcached_get.c +++ b/libmemcached/memcached_get.c @@ -274,7 +274,7 @@ static memcached_return binary_mget_by_key(memcached_st *ptr, continue; } - protocol_binary_request_getk request= {0}; + protocol_binary_request_getk request= {.bytes= {0}}; request.message.header.request.magic= PROTOCOL_BINARY_REQ; if (number_of_keys == 1) request.message.header.request.opcode= PROTOCOL_BINARY_CMD_GETK; @@ -302,7 +302,7 @@ static memcached_return binary_mget_by_key(memcached_st *ptr, /* * Send a noop command to flush the buffers */ - protocol_binary_request_noop request= {0}; + protocol_binary_request_noop request= {.bytes= {0}}; request.message.header.request.magic= PROTOCOL_BINARY_REQ; request.message.header.request.opcode= PROTOCOL_BINARY_CMD_NOOP; request.message.header.request.datatype= PROTOCOL_BINARY_RAW_BYTES;