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

Re: Newbie ask for help: cramfs port to isofs


ankry _at_ pg.gda.pl (Andrzej Krzysztofowicz) writes:
> "zhaoway wrote:"
> > -	int len;
> > -	int map;
> > +	int len = 0;
> 
> This will be the most probably rejected.
> Zero initializers are intentionally removed from the code to decrease
> the kernel image size.

A little knowledge is a dangerous thing.

The zero initializers can be removed from _static_ variables (those not
within function scope), where the initialization to zero is guarenteed.

In the case above, the variable being initialized is an automatic variable
(allocated on the stack), and so needs to be initialized.

-- 
 `O O'  | Nick.Holloway _at_ pyrites.org.uk
// ^ \\ | http://www.pyrites.org.uk/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo _at_ vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


この情報があなたの探していたものかどうか選択してください。
yes/まさにこれだ!   no/違うなぁ   part/一部見つかった   try/これで試してみる

あなたが探していた情報はどのようなことか、ご自由に記入下さい。特に「まさにこれだ!」と言う場合は記入をお願いします。
例:「複数のマシンからCATV経由でipmasqueradeを利用してWebを参照したい場合の設定について」
References: