[linux-dvb] mt20xx.c code bugs!

kevin liu lwtbenben at gmail.com
Fri Nov 16 02:08:00 CET 2007


You mean all the c compilers will give 'unknown' a special process???


On Nov 15, 2007 11:04 PM, Mauro Carvalho Chehab <mchehab at infradead.org> wrote:
>
> Em Qui, 2007-11-15 às 09:43 +0800, kevin liu escreveu:
>
> > Dear everyone:
> >     I am reading v4l2 tuner part code these days, when I come to mt20xx.c,
> > in microtune_init(), the use of the char pointer name maybe cause some
> > fatal error sometimes for this state:
> > ++++++++++++++++++++++++++++++++++++++++++++++++++
> > 507     name = "unknown";
> > ++++++++++++++++++++++++++++++++++++++++++++++++++
> >     while pointer name doesn't have its memory.
> >     And I wonder why gcc can't give any warnings?
>
> Because this works properly and it has a valid syntax/semantic.
>
> Any C compiler will add "unknown" string to the data segment and 'name'
> will point to this area.
>
> Cheers,
> Mauro
>
>



More information about the linux-dvb mailing list