[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [PATCH] diff: code shrink
From: Denys Vlasenko <vda.linux () googlemail ! com>
Date: 2021-02-22 18:01:43
Message-ID: CAK1hOcOsxD45e-o0fCYRJ=LtgYS3v0YP0-pqquz6ZfdEac6gcA () mail ! gmail ! com
[Download RAW message or body]
Applied, thank you
On Tue, Feb 16, 2021 at 10:09 AM Ron Yorston <rmy@pobox.com> wrote:
>
> function old new delta
> diff_main 1515 1495 -20
> ------------------------------------------------------------------------------
> (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-20) Total: -20 bytes
>
> Signed-off-by: Ron Yorston <rmy@pobox.com>
> ---
> editors/diff.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/editors/diff.c b/editors/diff.c
> index 280091756..1adc4cbc7 100644
> --- a/editors/diff.c
> +++ b/editors/diff.c
> @@ -1050,7 +1050,7 @@ int diff_main(int argc UNUSED_PARAM, char **argv)
> /* diffreg can get non-regular files here */
> print_status(gotstdin > 1 ? STATUS_SAME : diffreg(file), file);
>
> - if (dirfile)
> + if (ENABLE_FEATURE_CLEAN_UP && dirfile)
> free(file[dir]);
> }
>
> --
> 2.29.2
>
> _______________________________________________
> busybox mailing list
> busybox@busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic