coreboot-kgpe-d16/util/sconfig
Daniele Forsi ddf54b1c8b util/sconfig: fix check for count of command line arguments
Valid invocations are when -s|b|k outputfile is missing (argc == 3)
and when it is followed by the file name (argc == 5); it's an error
when "outputfile" is missing (argc == 4) or when there are more
arguments than expected (argc > 5).
Fixes "Uninitialized argument value" error found by scan-build from
clang version 3.2-11.

Change-Id: I8c489863323eb60cbaa5e82a80f5d78a6ca893c2
Signed-off-by: Daniele Forsi <dforsi@gmail.com>
Reviewed-on: http://review.coreboot.org/6378
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
2014-07-30 13:16:55 +02:00
..
Makefile.inc sconfig: Fix build dependencies 2014-04-16 08:20:24 +02:00
lex.yy.c_shipped sconfig: rename lapic_cluster -> cpu_cluster 2013-02-14 07:07:20 +01:00
main.c util/sconfig: fix check for count of command line arguments 2014-07-30 13:16:55 +02:00
sconfig.h Every chip must have chip_operations 2012-10-08 13:24:31 +02:00
sconfig.l sconfig: rename lapic_cluster -> cpu_cluster 2013-02-14 07:07:20 +01:00
sconfig.tab.c_shipped sconfig: rename lapic_cluster -> cpu_cluster 2013-02-14 07:07:20 +01:00
sconfig.tab.h_shipped sconfig: rename lapic_cluster -> cpu_cluster 2013-02-14 07:07:20 +01:00
sconfig.y sconfig: rename lapic_cluster -> cpu_cluster 2013-02-14 07:07:20 +01:00