{"thread":{"id":"58239","subject":"[PATCH] unpack-objects: fix build warning with gcc 4.8.5","startedAt":"2022-07-29T09:06:55Z","lastAt":"2022-07-29T09:06:55Z","messageCount":1,"participants":["Đoàn Trần Công Danh"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"460192","messageId":"dfb9273964a6226472316bedf188de63169fb45c.1659084815.git.congdanhqx@gmail.com","threadId":"58239","inReplyTo":null,"subject":"[PATCH] unpack-objects: fix build warning with gcc 4.8.5","fromName":"Đoàn Trần Công Danh","fromEmail":"congdanhqx@gmail.com","sentAt":"2022-07-29T09:06:44Z","receivedAt":"2022-07-29T09:06:55Z","isPatch":true,"sender":{"key":"congdanhqx@gmail.com","avatar":"https://avatars.githubusercontent.com/u/42673067?v=4"},"body":"git_zstream's first field is a struct (z_stream), it must be\ninitialised with {0}.\n\nSigned-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>\n---\n\n Cc: Han Xin <hanxin.hx@alibaba-inc.com>\n Fix for hx/unpack-streaming (merged to next)\n Please feel free to squash into it.\n\n builtin/unpack-objects.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/builtin/unpack-objects.c b/builtin/unpack-objects.c\nindex 43789b8ef2..4b16f1592b 100644\n--- a/builtin/unpack-objects.c\n+++ b/builtin/unpack-objects.c\n@@ -385,7 +385,7 @@ static const void *feed_input_zstream(struct input_stream *in_stream,\n \n static void stream_blob(unsigned long size, unsigned nr)\n {\n-\tgit_zstream zstream = { 0 };\n+\tgit_zstream zstream = { { 0 } };\n \tstruct input_zstream_data data = { 0 };\n \tstruct input_stream in_stream = {\n \t\t.read = feed_input_zstream,\n-- \n2.37.1.560.gdfb9273964\n\n"}]}