Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame^] | 1 | From 90c46235ad69a411d83a5e978492421e8e378934 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Fri, 18 Feb 2022 23:35:58 -0800 |
| 4 | Subject: [PATCH] git-changebar: Adjust structs for libgit2 1.4.x |
| 5 | |
| 6 | Upstream-Status: Pending |
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 8 | --- |
| 9 | git-changebar/src/gcb-plugin.c | 4 ++-- |
| 10 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 11 | |
| 12 | diff --git a/git-changebar/src/gcb-plugin.c b/git-changebar/src/gcb-plugin.c |
| 13 | index f8ce20c..4488b22 100644 |
| 14 | --- a/git-changebar/src/gcb-plugin.c |
| 15 | +++ b/git-changebar/src/gcb-plugin.c |
| 16 | @@ -216,7 +216,7 @@ static int |
| 17 | gcb_git_buf_grow (git_buf *buf, |
| 18 | size_t target_size) |
| 19 | { |
| 20 | - if (buf->asize == 0) { |
| 21 | + if (buf->reserved == 0) { |
| 22 | if (target_size == 0) { |
| 23 | target_size = buf->size; |
| 24 | } |
| 25 | @@ -234,7 +234,7 @@ buf_zero (git_buf *buf) |
| 26 | if (buf) { |
| 27 | buf->ptr = NULL; |
| 28 | buf->size = 0; |
| 29 | - buf->asize = 0; |
| 30 | + buf->reserved = 0; |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | -- |
| 35 | 2.35.1 |
| 36 | |