On Nov 15, 2007 2:43 AM, kevin liu <[EMAIL PROTECTED]> 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

_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

Reply via email to