From 2300571ad88682dc5367f8e8b8564c17ac1f36de Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Fri, 14 Jun 2024 09:05:50 -0500 Subject: [PATCH] test(core): fix a type conversion issue in the minimal test - need a null string for either narrow or wide chars Fixes: #10968 --- core/tests/unit/ldml/core_ldml_min.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/tests/unit/ldml/core_ldml_min.cpp b/core/tests/unit/ldml/core_ldml_min.cpp index 8797cc5a8a..ed7ea1b3fd 100644 --- a/core/tests/unit/ldml/core_ldml_min.cpp +++ b/core/tests/unit/ldml/core_ldml_min.cpp @@ -21,7 +21,8 @@ int main(int argc, const char *argv[]) { km_core_keyboard * test_kb = nullptr; km_core_status status; - status = km_core_keyboard_load("", &test_kb); + km_core_path_name nowhere = {0}; // this is a narrow or wide char string + status = km_core_keyboard_load(nowhere, &test_kb); std::cerr << "null km_core_keyboard_load = " << status << std::endl; assert(status == KM_CORE_STATUS_INVALID_ARGUMENT);