Thread (1 message) 1 message, 1 author, 2019-01-10

Re: [PATCH] diff: ensure correct lifetime of external_diff_cmd

From: Junio C Hamano <hidden>
Date: 2019-01-10 18:27:19

Eric Sunshine [off-list ref] writes:
However, you might also consider using xstrdup_or_null(), like this:

    external_diff_cmd = xstrdup_or_null(getenv(...));
    if (!external_diff_cmd)
        ...as before...
quoted
        done_preparing = 1;
        return external_diff_cmd;
 }
Looks good.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help