Re: [PATCH] net #9

Jeff Garzik
2001-05-30T10:31:06Z

"Henning P. Schmiedehausen" wrote:
>
> Andrzej Krzysztofowicz <ankry@green.mif.pg.gda.pl> writes:
>
> >-static char name[4][IFNAMSIZ] = { "", "", "", "" };
>
> >+static char name[4][IFNAMSIZ];
>
> Ugh. Sure about that one? the variables have been pointers to zero,
> now they're zero...

No, the variables were and always have been arrays, not pointers.

The previous incarnation, {"","","",""}, was actually doubly lame,
because not only was it an unnecessary zeroing of the var, but using ""
causes an extra string to be generated in the output asm.

--
Jeff Garzik | Disbelief, that's why you fail.
Building 1024 |
MandrakeSoft |