Create workaround for warnings generated by a broken C99 compiler
[awesomized/libmemcached] / libmemcached / protocol / binary_handler.c
index 27581ec8093cc0ab7f727924e073ece5114edb84..2bafdeb1a445df0378bb4e366a955f1fca2bee3c 100644 (file)
@@ -125,9 +125,10 @@ get_response_handler(const void *cookie,
       .extlen= 4,
       .bodylen= htonl(bodylen + keylen + 4),
     },
-    .message.body.flags= htonl(flags),
   };
 
+  response.message.body.flags= htonl(flags);
+
   protocol_binary_response_status rval;
   const protocol_binary_response_status success= PROTOCOL_BINARY_RESPONSE_SUCCESS;
   if ((rval= client->root->spool(client, response.bytes, sizeof(response.bytes))) != success ||