Re: [PATCH 1/4] zero-initialize object_info structs

2013-07-07 Thread Junio C Hamano
Jeff King writes: > Obviously I plan to add a new query type in the next patch, but this > initialization is probably a reasonable thing to be doing anyway. Yes. Thanks. > > sha1_file.c | 2 +- > streaming.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/sha1_file.

[PATCH 1/4] zero-initialize object_info structs

2013-07-07 Thread Jeff King
The sha1_object_info_extended function expects the caller to provide a "struct object_info" which contains pointers to "query" items that will be filled in. The purpose of providing pointers rather than storing the response directly in the struct is so that callers can choose not to incur the expen