[systemd-devel] [PATCH 1/3] journal: Do not count on the compiler initializing found_last to false
Dale R. Worley
worley at alum.mit.edu
Fri Sep 19 07:34:03 PDT 2014
> From: Philippe De Swert <philippedeswert at gmail.com>
>
> There is a very unlikely case where this can happen since gcc usually
> does the sane thing. But let's make sure found_last is initialized anyway.
You'd better -- the C standard does *not* require the compiler to
intialize local ("auto") variables.
Dale
More information about the systemd-devel
mailing list