[PATCH] automount: check for recursive automount
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Thu Jul 3 01:51:22 PDT 2014
On Thu, Jul 03, 2014 at 10:34:37AM +0200, Rolf Evers-Fischer wrote:
> Hi Sascha,
>
> Sascha Hauer <s.hauer at ...> wrote:
> > + static int in_automount;
> > +
> > + if (in_automount)
> > + return;
>
> It seems that we are using the 'in_automount' without initialization.
> Shouldn't we initialize the static 'in_automount' with 0? Or can we rely
> on the compiler, that all statics will be initialized with zeros?
static variables are initialized to 0 (for pointers: NULL) by the
compiler.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
More information about the barebox
mailing list