[PATCH] diff: code shrink

Denys Vlasenko vda.linux at googlemail.com
Mon Feb 22 18:01:43 UTC 2021


Applied, thank you

On Tue, Feb 16, 2021 at 10:09 AM Ron Yorston <rmy at 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 at 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 at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox


More information about the busybox mailing list