]> sourceware.org Git - glibc.git/commitdiff
support: Add options list terminator to the test driver
authorFlorian Weimer <fweimer@redhat.com>
Fri, 9 Aug 2024 15:01:17 +0000 (17:01 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 9 Aug 2024 15:01:19 +0000 (17:01 +0200)
This avoids crashes if a test is passed unknown options.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
support/test-driver.c

index f4c3e4d66691827057af1486e6c31f5194bf5c90..04ceebc08f320b8b9d6e6640c4c9361fde4138a7 100644 (file)
@@ -155,6 +155,7 @@ main (int argc, char **argv)
     {
       CMDLINE_OPTIONS
       TEST_DEFAULT_OPTIONS
+      { 0, }
     };
   test_config.options = &options;
 #endif
This page took 0.035341 seconds and 5 git commands to generate.