]> git.ozlabs.org Git - petitboot/blobdiff - test/parser/utils.c
test/parser: Allow checks for NULL boot_args
[petitboot] / test / parser / utils.c
index 7ebb411c0c9f6eb664991da10e75b7fb684a64c3..f6939828337cfde8aa3ce31b8f1687cea2542e34 100644 (file)
@@ -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");