mt20xx.c code bugs!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Nov 15, 2007 2:43 AM, kevin liu <lwtbenben@xxxxxxxxx> 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@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux