Thread (47 messages) 47 messages, 6 authors, 2021-09-24

Re: [PATCH 08/11] rebase: remove redundant strbuf

flat view

From: Johannes Schindelin <hidden>
Date: 2021-09-09 10:35:30

Hi Phillip,

On Wed, 8 Sep 2021, Phillip Wood via GitGitGadget wrote:
From: Phillip Wood <redacted>

There is already an strbuf that can be reused for creating messages.
msg is not freed if there is an error and there is a logic error where
we call strbuf_release(&msg) followed by strbuf_reset(&msg) and
strbuf_addf(&msg).
In some instances, we use a `buf` variable to construct a string that is
then assigned to a `const char *` and is used elsewhere throughout the
function. If this was the case in the code you modified, that would be a
problem.

I did verify manually that this is not the case, though, so this patch is
good to go.

Thanks,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help