sha1_file: make packed_object_info public
[gitweb.git] / streaming.c
index 811fcc24d2a8ba56c233ae4e37b7acac29a4a0d8..431254ba416ce8e48f71f8f85a1c70c2a56c7090 100644 (file)
@@ -135,7 +135,7 @@ struct git_istream *open_istream(const unsigned char *sha1,
                                 struct stream_filter *filter)
 {
        struct git_istream *st;
-       struct object_info oi = {NULL};
+       struct object_info oi = OBJECT_INFO_INIT;
        const unsigned char *real = lookup_replace_object(sha1);
        enum input_source src = istream_source(real, type, &oi);