notes: release strbuf after use in notes_copy_from_stdin()
[gitweb.git] / streaming.c
index 3f017a1c058fb94bc3220be09c384e53e565fb40..6f1c60f12bc5eea13c4b27cf6c80d690ffe49ab8 100644 (file)
@@ -3,6 +3,7 @@
  */
 #include "cache.h"
 #include "streaming.h"
+#include "packfile.h"
 
 enum input_source {
        stream_error = -1,
@@ -135,7 +136,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);