]> git.ozlabs.org Git - petitboot/commitdiff
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)
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>

No differences found