aboutsummaryrefslogtreecommitdiff
path: root/support/test-driver.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2024-08-09 17:01:17 +0200
committerFlorian Weimer <fweimer@redhat.com>2024-08-09 17:01:19 +0200
commitc2a474f4617ede7a8bf56b7257acb37dc757b2d1 (patch)
tree9bf7986773176907c83e36d8f089ca2ad45350c1 /support/test-driver.c
parenteb0e50e9a1cf80a2ba6f33f990a08ef37a3267fb (diff)
downloadglibc-c2a474f4617ede7a8bf56b7257acb37dc757b2d1.zip
glibc-c2a474f4617ede7a8bf56b7257acb37dc757b2d1.tar.gz
glibc-c2a474f4617ede7a8bf56b7257acb37dc757b2d1.tar.bz2
support: Add options list terminator to the test driver
This avoids crashes if a test is passed unknown options. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'support/test-driver.c')
-rw-r--r--support/test-driver.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/support/test-driver.c b/support/test-driver.c
index f4c3e4d..04ceebc 100644
--- a/support/test-driver.c
+++ b/support/test-driver.c
@@ -155,6 +155,7 @@ main (int argc, char **argv)
{
CMDLINE_OPTIONS
TEST_DEFAULT_OPTIONS
+ { 0, }
};
test_config.options = &options;
#endif