From 2f4a926184a8a3e7e21994786af0b0a3cffd3a4e Mon Sep 17 00:00:00 2001 From: Christoph Haag Date: Tue, 16 May 2023 08:53:55 +0000 Subject: [PATCH] t/legacy: Ensure all legacy drivers can be disabled [NFC] --- src/xrt/targets/common/target_builder_legacy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xrt/targets/common/target_builder_legacy.c b/src/xrt/targets/common/target_builder_legacy.c index d00c93418..9eccdb830 100644 --- a/src/xrt/targets/common/target_builder_legacy.c +++ b/src/xrt/targets/common/target_builder_legacy.c @@ -83,6 +83,7 @@ static const char *driver_list[] = { #if defined(XRT_BUILD_DRIVER_SIMULATED) "simulated", #endif + NULL, }; @@ -202,7 +203,7 @@ t_builder_legacy_create(void) xb->identifier = "legacy"; xb->name = "Legacy probing system"; xb->driver_identifiers = driver_list; - xb->driver_identifier_count = ARRAY_SIZE(driver_list); + xb->driver_identifier_count = ARRAY_SIZE(driver_list) - 1; return xb; }