From 98a3faddc9e01e2bfc9c267f32fce0173678a40a Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Tue, 24 Sep 2013 14:01:43 +0800 Subject: test/parser: Allow checks for NULL boot_args Signed-off-by: Jeremy Kerr --- test/parser/utils.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/parser/utils.c') diff --git a/test/parser/utils.c b/test/parser/utils.c index 7ebb411..f693982 100644 --- a/test/parser/utils.c +++ b/test/parser/utils.c @@ -239,6 +239,9 @@ void __check_args(struct discover_boot_option *opt, const char *args, { int rc; + if (!opt->option->boot_args && !args) + return; + if (!opt->option->boot_args) { fprintf(stderr, "%s:%d: arg check failed\n", file, line); fprintf(stderr, " no arguments parsed\n"); -- cgit v1.2.1