This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] malloc: remove redundant getenv call
- From: Florian Weimer <fweimer at redhat dot com>
- To: Gleb Fotengauer-Malinovskiy <glebfm at altlinux dot org>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 24 Nov 2015 17:32:34 +0100
- Subject: Re: [PATCH] malloc: remove redundant getenv call
- Authentication-results: sourceware.org; auth=none
- References: <20151124162627 dot GA30170 at glebfm dot cloud dot tilaa dot com>
On 11/24/2015 05:26 PM, Gleb Fotengauer-Malinovskiy wrote:
> + const char *str_buffer_size;
> +
The currently preferred style is to minimize the declarative region,
that is, declare the variable as late as possible (and usually
initialize it instead of assigning it).
This change also needs a ChangeLog entry.
Thanks,
Florian