diff options
Diffstat (limited to 'protocol-caps.c')
-rw-r--r-- | protocol-caps.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocol-caps.c b/protocol-caps.c index 13a9e63a04..bbde91810a 100644 --- a/protocol-caps.c +++ b/protocol-caps.c @@ -69,13 +69,13 @@ static void send_info(struct repository *r, struct packet_writer *writer, } } - packet_writer_write(writer, "%s", - strbuf_detach(&send_buffer, NULL)); + packet_writer_write(writer, "%s", send_buffer.buf); + strbuf_reset(&send_buffer); } + strbuf_release(&send_buffer); } -int cap_object_info(struct repository *r, struct strvec *keys, - struct packet_reader *request) +int cap_object_info(struct repository *r, struct packet_reader *request) { struct requested_info info; struct packet_writer writer; |