]> git.ozlabs.org Git - petitboot/commit
discover: Fix uninitialised var warnings
authorJeremy Kerr <jk@ozlabs.org>
Fri, 11 Apr 2014 08:11:51 +0000 (16:11 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Wed, 16 Apr 2014 01:08:45 +0000 (09:08 +0800)
commitcf651e02fb7a34545211708c2a285cd228645531
tree96830acda3e05d5293abe077219dd24f48464ee9
parentada4ea46dd44e667bfe6341e0b7b5366e5741351
discover: Fix uninitialised var warnings

We get a couple of uninitialised var warning when compiling with certain
CFLAGS (-fprofile-arcs -ftest-coverage at this stage).

In statement_if_execute: We'll never actually use this uninitialised (as
there must be at least one conditional in the parsed statement), but we
should address the warning nonetheless.

As passed to strtok_r: strtok will initialise this, but it isn't obvious
to the compiler.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/grub2/script.c
discover/platform-powerpc.c