[Devel] In C we can use "foo = bar = ...; " and it's more readable actually

Kir Kolyshkin kir at openvz.org
Sun Apr 28 21:46:53 PDT 2013


Applied.

Please try to keep the first line of the changelog (i.e. subject)
within 50 characters, it's sort of a de-facto standard for git.

On 04/28/2013 08:31 PM, Igor Podlesny wrote:
> ---
>   src/lib/util.c |    3 +--
>   1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/src/lib/util.c b/src/lib/util.c
> index 75a2fe7..9d47dec 100644
> --- a/src/lib/util.c
> +++ b/src/lib/util.c
> @@ -48,8 +48,7 @@ static const char *unescapestr(char *src)
>   
>   	if (src == NULL)
>   		return NULL;
> -	p2 = src;
> -	p1 = p2;
> +	p1 = p2 = src;
>   	fl = 0;
>   	while (*p2) {
>   		if (*p2 == '\\' && !fl)	{




More information about the Devel mailing list