[lkml]   [2001]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] net #9
"Henning P. Schmiedehausen wrote:"
> Andrzej Krzysztofowicz <> 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...

I do not agree. As I understand C "name" is a table, i.e. a pointer to a
prealocated area of size of 4*IFNAMSIZ*sizeof(char) bytes. There is no
pointers to the strings stored seprately.
[ The strings are copied into the apropriate locations in the array during
initialization ]

After applying the mentioned patch just the whole area of the array will be
zeroed. Not only the first characters of name[i] i=0,1,2,3 ...

Andrzej M. Krzysztofowicz
phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math., Technical University of Gdansk

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:54    [W:0.068 / U:1.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site