[linux-dvb] mt20xx.c code bugs!
Vincent Pelletier
plr.vincent at gmail.com
Fri Nov 16 06:43:34 CET 2007
On Nov 15, 2007 2:43 AM, kevin liu <lwtbenben at gmail.com> wrote:
> while pointer name doesn't have its memory.
Don't you confuse
char *foo = "bar";
with
char *foo;
strcpy(foo, "bar");
?
The first needs *no* runtime memory allocation, as it was pointed out.
The second does need runtime memory allocation, and as such is a bug.
The code you point out belongs to the first category.
Vincent Pelletier
More information about the linux-dvb
mailing list