On Sun, Jul 06, 2014 at 05:54:59PM +0200, Denis Fondras wrote:

> Hello all,
> 
> If I understand correctly calloc(), allocated space is already
> initialized to zero. So setting var to NULL is not needed.
> 
> Is it alright or should it be kept "just in case" ?
> 
> Regards,
> Denis
> 
> --- parse.y.orig        Sun Jul  6 17:51:59 2014
> +++ parse.y     Sun Jul  6 17:52:15 2014
> @@ -3042,7 +3042,6 @@
> 
>         /* some sane defaults */
>         p->state = STATE_NONE;
> -       p->next = NULL;
>         p->conf.distance = 1;
>         p->conf.announce_type = ANNOUNCE_UNDEF;
>         p->conf.announce_capa = 1;

Please use cvs diff, whcih includes more context. Now we have no idea
which parse.y you are patching.

        -Otto

Reply via email to