Skip to content

Commit 9428647

Browse files
DaveGosselin-MariaDBcvicentiu
authored andcommitted
MDEV-35585 unit.json_normalize crashes on mac
Like MDEV-35583, initialize THR_KEY_mysys explicitly by calling MY_INIT and my_end.
1 parent e7c6cdd commit 9428647

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

unittest/json_lib/json_normalize-t.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,10 @@ check_number_normalize(const char *in, const char *expected)
241241

242242

243243
int
244-
main(void)
244+
main(int argc, char** argv)
245245
{
246+
MY_INIT(argv[0]);
247+
246248
plan(88);
247249
diag("Testing json_normalization.");
248250

@@ -276,5 +278,6 @@ main(void)
276278
test_json_normalize_nested_deep();
277279
test_json_normalize_non_utf8();
278280

281+
my_end(MY_CHECK_ERROR);
279282
return exit_status();
280283
}

0 commit comments

Comments
 (0)